triangle-utils 1.4.189 → 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.
- package/dist/src/UtilsCognito.js +2 -2
- package/package.json +1 -1
- package/src/UtilsCognito.ts +2 -2
package/dist/src/UtilsCognito.js
CHANGED
|
@@ -72,8 +72,8 @@ export class UtilsCognito {
|
|
|
72
72
|
return undefined;
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
async get_user_id(token, options) {
|
|
76
|
-
const is_verbose = options
|
|
75
|
+
async get_user_id(token, options = {}) {
|
|
76
|
+
const is_verbose = options.is_verbose || false;
|
|
77
77
|
try {
|
|
78
78
|
const user_info = await this.cognito.getUser({
|
|
79
79
|
AccessToken: token
|
package/package.json
CHANGED
package/src/UtilsCognito.ts
CHANGED
|
@@ -76,8 +76,8 @@ export class UtilsCognito {
|
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
async get_user_id(token : string, options
|
|
80
|
-
const is_verbose = options
|
|
79
|
+
async get_user_id(token : string, options : { is_verbose? : boolean } = {}) : Promise<string | undefined> {
|
|
80
|
+
const is_verbose = options.is_verbose || false
|
|
81
81
|
try {
|
|
82
82
|
const user_info = await this.cognito.getUser({
|
|
83
83
|
AccessToken : token
|