@cedarjs/auth-auth0-web 7.0.1-next.467 → 7.1.0-rc.34

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/auth0.d.ts CHANGED
@@ -4,10 +4,10 @@ export interface Auth0User {
4
4
  }
5
5
  export declare function createAuth(auth0Client: Auth0Client, customProviderHooks?: {
6
6
  useCurrentUser?: () => Promise<CurrentUser>;
7
- useHasRole?: (currentUser: CurrentUser) => (rolesToCheck: string | string[]) => boolean;
7
+ useHasRole?: (currentUser: CurrentUser | null) => (rolesToCheck: string | string[]) => boolean;
8
8
  }): {
9
- AuthContext: import("react").Context<import("@cedarjs/auth").AuthContextInterface<import("@auth0/auth0-spa-js").User, RedirectLoginOptions<any>, void, LogoutOptions, void, RedirectLoginOptions<any>, void, unknown, unknown, unknown, unknown, Auth0Client, unknown, unknown> | undefined>;
9
+ AuthContext: import("react").Context<import("@cedarjs/auth").AuthContextInterface<import("@auth0/auth0-spa-js").User, RedirectLoginOptions<any>, void, LogoutOptions, void, RedirectLoginOptions<any>, void, unknown, unknown, unknown, unknown, Auth0Client> | undefined>;
10
10
  AuthProvider: ({ children }: import("@cedarjs/auth").AuthProviderProps) => import("react").JSX.Element;
11
- useAuth: () => import("@cedarjs/auth").AuthContextInterface<import("@auth0/auth0-spa-js").User, RedirectLoginOptions<any>, void, LogoutOptions, void, RedirectLoginOptions<any>, void, unknown, unknown, unknown, unknown, Auth0Client, unknown, unknown>;
11
+ useAuth: () => import("@cedarjs/auth").AuthContextInterface<import("@auth0/auth0-spa-js").User, RedirectLoginOptions<any>, void, LogoutOptions, void, RedirectLoginOptions<any>, void, unknown, unknown, unknown, unknown, Auth0Client>;
12
12
  };
13
13
  //# sourceMappingURL=auth0.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"auth0.d.ts","sourceRoot":"","sources":["../src/auth0.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,aAAa,EACb,oBAAoB,EACrB,MAAM,qBAAqB,CAAA;AAE5B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAKhD,MAAM,WAAW,SAAS;CAAG;AAE7B,wBAAgB,UAAU,CACxB,WAAW,EAAE,WAAW,EACxB,mBAAmB,CAAC,EAAE;IACpB,cAAc,CAAC,EAAE,MAAM,OAAO,CAAC,WAAW,CAAC,CAAA;IAC3C,UAAU,CAAC,EAAE,CACX,WAAW,EAAE,WAAW,KACrB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,OAAO,CAAA;CAClD;;;;EAKF"}
1
+ {"version":3,"file":"auth0.d.ts","sourceRoot":"","sources":["../src/auth0.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,aAAa,EACb,oBAAoB,EACrB,MAAM,qBAAqB,CAAA;AAE5B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAKhD,MAAM,WAAW,SAAS;CAAG;AAE7B,wBAAgB,UAAU,CACxB,WAAW,EAAE,WAAW,EACxB,mBAAmB,CAAC,EAAE;IACpB,cAAc,CAAC,EAAE,MAAM,OAAO,CAAC,WAAW,CAAC,CAAA;IAC3C,UAAU,CAAC,EAAE,CACX,WAAW,EAAE,WAAW,GAAG,IAAI,KAC5B,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,OAAO,CAAA;CAClD;;;;EAKF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/auth-auth0-web",
3
- "version": "7.0.1-next.467",
3
+ "version": "7.1.0-rc.34",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/cedarjs/cedar.git",
@@ -39,20 +39,20 @@
39
39
  "test:watch": "vitest watch"
40
40
  },
41
41
  "dependencies": {
42
- "@cedarjs/auth": "7.0.1-next.467"
42
+ "@cedarjs/auth": "7.1.0-rc.34"
43
43
  },
44
44
  "devDependencies": {
45
- "@auth0/auth0-spa-js": "2.28.3",
46
- "@cedarjs/framework-tools": "7.0.1-next.467",
47
- "@types/react": "^19.2.0",
48
- "concurrently": "9.2.5",
49
- "publint": "0.3.25",
50
- "react": "19.3.0",
45
+ "@auth0/auth0-spa-js": "2.27.0",
46
+ "@cedarjs/framework-tools": "7.1.0-rc.34",
47
+ "@types/react": "^18.2.55",
48
+ "concurrently": "9.2.4",
49
+ "publint": "0.3.24",
50
+ "react": "18.3.1",
51
51
  "typescript": "5.9.3",
52
52
  "vitest": "4.1.11"
53
53
  },
54
54
  "peerDependencies": {
55
- "@auth0/auth0-spa-js": "2.28.3"
55
+ "@auth0/auth0-spa-js": "2.27.0"
56
56
  },
57
57
  "engines": {
58
58
  "node": ">=24"