@fy-stack/auth-construct 0.0.140 → 0.0.142
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -17,10 +17,10 @@ export declare class AuthConstruct extends Construct implements Attachable, Gran
|
|
|
17
17
|
client: cognito.UserPoolClient;
|
|
18
18
|
constructor(scope: Construct, id: string, props: AuthConstructProps);
|
|
19
19
|
attachable(): {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
ARN: string;
|
|
21
|
+
ID: string;
|
|
22
|
+
CLIENT_ID: string;
|
|
23
|
+
CLIENT_SECRET: string;
|
|
24
24
|
};
|
|
25
25
|
grantable(grant: iam.IGrantable): void;
|
|
26
26
|
}
|
|
@@ -53,13 +53,13 @@ class AuthConstruct extends constructs_1.Construct {
|
|
|
53
53
|
}
|
|
54
54
|
attachable() {
|
|
55
55
|
const params = {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
56
|
+
ARN: this?.userPool.userPoolArn,
|
|
57
|
+
ID: this?.userPool.userPoolId,
|
|
58
|
+
CLIENT_ID: this?.client.userPoolClientId,
|
|
59
|
+
CLIENT_SECRET: this?.client.userPoolClientSecret.unsafeUnwrap(),
|
|
60
60
|
};
|
|
61
61
|
if (this.domain) {
|
|
62
|
-
Object.assign(params, {
|
|
62
|
+
Object.assign(params, { DOMAIN_NAME: this.domain.domainName, });
|
|
63
63
|
}
|
|
64
64
|
return params;
|
|
65
65
|
}
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fy-stack/auth-construct",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.142",
|
|
4
4
|
"repository": "https://github.com/festusyuma/fy-stack",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@fy-stack/types": "0.0.
|
|
6
|
+
"@fy-stack/types": "0.0.142",
|
|
7
7
|
"tslib": "^2.3.0"
|
|
8
8
|
},
|
|
9
9
|
"peerDependencies": {
|