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