feat: oauth context select session
This commit is contained in:
@ -13,6 +13,7 @@ interface OAuthContextValues {
|
||||
setScope: (scopes: string[]) => void;
|
||||
setState: (state: string) => void;
|
||||
setNonce: (nonce: string) => void;
|
||||
selectSession: (token: string) => Promise<void>;
|
||||
}
|
||||
|
||||
export const OAuthContext = createContext<OAuthContextValues>({
|
||||
@ -28,6 +29,7 @@ export const OAuthContext = createContext<OAuthContextValues>({
|
||||
setScope: () => {},
|
||||
setState: () => {},
|
||||
setNonce: () => {},
|
||||
selectSession: async () => {},
|
||||
});
|
||||
|
||||
export const useOAuthContext = () => useContext(OAuthContext);
|
||||
|
Reference in New Issue
Block a user