acinguiux-dnr-utils 0.0.2 → 0.0.3
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/package.json
CHANGED
|
@@ -36,7 +36,9 @@ export default function PingID(
|
|
|
36
36
|
// the request and decode the JWT instead to get the user profile
|
|
37
37
|
|
|
38
38
|
async request({ tokens }: { tokens: JWT }) {
|
|
39
|
-
|
|
39
|
+
const accessToken = typeof tokens.access_token === "string" ? tokens.access_token : undefined;
|
|
40
|
+
|
|
41
|
+
return extractProfile(accessToken);
|
|
40
42
|
},
|
|
41
43
|
},
|
|
42
44
|
// Profile is returned from the userinfo request
|