@cedarjs/auth-auth0-web 7.0.0-canary.3184 → 7.0.0-canary.3189

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.
Files changed (2) hide show
  1. package/dist/auth0.js +4 -1
  2. package/package.json +5 -5
package/dist/auth0.js CHANGED
@@ -23,7 +23,10 @@ function createAuthImplementation(auth0Client) {
23
23
  prompt: "login"
24
24
  }
25
25
  }),
26
- getToken: () => auth0Client.getTokenSilently(),
26
+ getToken: async () => {
27
+ const token = await auth0Client.getTokenSilently();
28
+ return token ?? null;
29
+ },
27
30
  getUserMetadata: async () => {
28
31
  const user = await auth0Client.getUser();
29
32
  return user || null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/auth-auth0-web",
3
- "version": "7.0.0-canary.3184",
3
+ "version": "7.0.0-canary.3189",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/cedarjs/cedar.git",
@@ -39,11 +39,11 @@
39
39
  "test:watch": "vitest watch"
40
40
  },
41
41
  "dependencies": {
42
- "@cedarjs/auth": "7.0.0-canary.3184"
42
+ "@cedarjs/auth": "7.0.0-canary.3189"
43
43
  },
44
44
  "devDependencies": {
45
- "@auth0/auth0-spa-js": "2.24.1",
46
- "@cedarjs/framework-tools": "7.0.0-canary.3184",
45
+ "@auth0/auth0-spa-js": "2.25.0",
46
+ "@cedarjs/framework-tools": "7.0.0-canary.3189",
47
47
  "@types/react": "^19.2.0",
48
48
  "concurrently": "9.2.4",
49
49
  "publint": "0.3.24",
@@ -52,7 +52,7 @@
52
52
  "vitest": "4.1.11"
53
53
  },
54
54
  "peerDependencies": {
55
- "@auth0/auth0-spa-js": "2.24.1"
55
+ "@auth0/auth0-spa-js": "2.25.0"
56
56
  },
57
57
  "engines": {
58
58
  "node": ">=24"