[READ-ONLY] a fast, modern browser for the npm registry
at main 11 lines 415 B view raw
1import type { SessionManager } from 'h3' 2import { OAuthStateStore } from './oauth-state-store' 3import { OAuthSessionStore } from './oauth-session-store' 4import type { UserServerSession } from '#shared/types/userSession' 5 6export const useOAuthStorage = (session: SessionManager<UserServerSession>) => { 7 return { 8 stateStore: new OAuthStateStore(session), 9 sessionStore: new OAuthSessionStore(session), 10 } 11}