@axcode/axcloud-sdk 0.5.0 → 1.0.0
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/barnsport.d.mts +5 -4
- package/dist/barnsport.d.ts +5 -4
- package/dist/index.d.mts +5 -4
- package/dist/index.d.ts +5 -4
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/dist/public.d.mts +4 -3
- package/dist/public.d.ts +4 -3
- package/dist/{useBarnsport-DHyNF9GM.d.mts → useBarnsport-3NwAFn3h.d.mts} +2 -1
- package/dist/{useBarnsport-DHyNF9GM.d.ts → useBarnsport-3NwAFn3h.d.ts} +2 -1
- package/dist/{useContent-CGI1l3Gs.d.ts → useContent-BULNVLEx.d.ts} +2 -1
- package/dist/{useContent-DLoyqAWH.d.mts → useContent-qNaQd8Xi.d.mts} +2 -1
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
|
@@ -441,7 +441,8 @@ function useAuth() {
|
|
|
441
441
|
}
|
|
442
442
|
}, [getAccessTokenSilently]);
|
|
443
443
|
const refreshUser = useCallback(async () => {
|
|
444
|
-
await getAccessTokenSilently({ cacheMode: "off" });
|
|
444
|
+
const token = await getAccessTokenSilently({ cacheMode: "off" });
|
|
445
|
+
if (!token) return false;
|
|
445
446
|
const claims = await getIdTokenClaims();
|
|
446
447
|
return claims?.email_verified === true;
|
|
447
448
|
}, [getAccessTokenSilently, getIdTokenClaims]);
|