Skip to content
Snippets Groups Projects
OAuthState.ts 306 B
Newer Older
  • Learn to ignore specific revisions
  • import type { User } from './User';
    
    export interface IOAuthState {
      user?: User | null;
      isLoading: boolean;
      isAuthenticated: boolean;
      activeNavigator?: "signinRedirect";
      error?: Error;
    }
    
    export const initialOAuthState: IOAuthState = {
      user: null,
      isLoading: true,
      isAuthenticated: false
    }