Added 'cloud storage' functionality
This commit is contained in:
17
FastNotes/hooks/use-auth-context.tsx
Normal file
17
FastNotes/hooks/use-auth-context.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { createContext, useContext } from 'react'
|
||||
|
||||
export type AuthData = {
|
||||
claims?: Record<string, any> | null
|
||||
profile?: any | null
|
||||
isLoading: boolean
|
||||
isLoggedIn: boolean
|
||||
}
|
||||
|
||||
export const AuthContext = createContext<AuthData>({
|
||||
claims: undefined,
|
||||
profile: undefined,
|
||||
isLoading: true,
|
||||
isLoggedIn: false,
|
||||
})
|
||||
|
||||
export const useAuthContext = () => useContext(AuthContext)
|
||||
@@ -1,8 +1,3 @@
|
||||
/**
|
||||
* Learn more about light and dark modes:
|
||||
* https://docs.expo.dev/guides/color-schemes/
|
||||
*/
|
||||
|
||||
import { Colors } from '@/constants/theme';
|
||||
import { useColorScheme } from '@/hooks/use-color-scheme';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user