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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "acinguiux-dnr-utils",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "dependencies": {
5
5
  "@auth/core": "^0.41.1",
6
6
  "@grafana/faro-web-sdk": "^1.19.0",
@@ -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
- return extractProfile(tokens.access_token);
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