triangle-utils 1.4.188 → 1.4.190
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.
|
@@ -5,7 +5,7 @@ export declare class UtilsCognito {
|
|
|
5
5
|
admin_create_user(user_pool_id: string, username: string, user_id: string): Promise<Error | import("@aws-sdk/client-cognito-identity-provider").AdminCreateUserCommandOutput>;
|
|
6
6
|
admin_reset_password(user_pool_id: string, username: string): Promise<Error | import("@aws-sdk/client-cognito-identity-provider").AdminCreateUserCommandOutput>;
|
|
7
7
|
get_email(token: string): Promise<string | undefined>;
|
|
8
|
-
get_user_id(token: string, options
|
|
8
|
+
get_user_id(token: string, options?: {
|
|
9
9
|
is_verbose?: boolean;
|
|
10
10
|
}): Promise<string | undefined>;
|
|
11
11
|
get_new_token(client_id: string, client_secret: string, refresh_token: string): Promise<string | undefined>;
|
package/dist/src/UtilsCognito.js
CHANGED
package/package.json
CHANGED
package/src/UtilsCognito.ts
CHANGED
|
@@ -76,7 +76,7 @@ export class UtilsCognito {
|
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
async get_user_id(token : string, options : { is_verbose? : boolean }) : Promise<string | undefined> {
|
|
79
|
+
async get_user_id(token : string, options : { is_verbose? : boolean } = {}) : Promise<string | undefined> {
|
|
80
80
|
const is_verbose = options.is_verbose || false
|
|
81
81
|
try {
|
|
82
82
|
const user_info = await this.cognito.getUser({
|