feat: oauth context select session

This commit is contained in:
2025-05-25 14:53:48 +02:00
parent 23845e25dd
commit 024d07fdd6

View File

@ -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);