@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.
@@ -20,6 +20,7 @@ interface UseAuthentication {
20
20
  accessToken: string;
21
21
  authResponse: AuthApiResponse;
22
22
  isAuthenticated: Promise<boolean> | boolean;
23
+ isGlobalLoading: boolean;
23
24
  setUsername: (username: string) => void;
24
25
  signOut: () => void;
25
26
  user: MeAPIResponse;
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,