@asgardeo/react 0.2.1 → 0.2.2
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/cjs/index.js +2 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/models/use-authentication.d.ts +1 -0
- package/dist/esm/index.js +2 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/models/use-authentication.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -40488,7 +40488,7 @@ const BrandingPreferenceContext = createContext(undefined);
|
|
|
40488
40488
|
*/
|
|
40489
40489
|
const useAuthentication = () => {
|
|
40490
40490
|
const contextValue = useContext(AsgardeoContext);
|
|
40491
|
-
const { accessToken, authResponse, isAuthenticated, setUsername, user, username } = contextValue;
|
|
40491
|
+
const { accessToken, authResponse, isAuthenticated, isGlobalLoading, setUsername, user, username } = contextValue;
|
|
40492
40492
|
const signOut$1 = () => {
|
|
40493
40493
|
signOut().then(() => {
|
|
40494
40494
|
sessionStorage.clear();
|
|
@@ -40501,6 +40501,7 @@ const useAuthentication = () => {
|
|
|
40501
40501
|
accessToken,
|
|
40502
40502
|
authResponse,
|
|
40503
40503
|
isAuthenticated,
|
|
40504
|
+
isGlobalLoading,
|
|
40504
40505
|
setUsername,
|
|
40505
40506
|
signOut: signOut$1,
|
|
40506
40507
|
user,
|