UNPKG

better-auth

Version:

The most comprehensive authentication framework for TypeScript.

1 lines 753 B
{"version":3,"file":"oauth.mjs","names":[],"sources":["../../../src/api/middlewares/oauth.ts"],"sourcesContent":["import { defineRequestState } from \"@better-auth/core/context\";\n\ntype OAuthState = {\n\tcallbackURL: string;\n\tcodeVerifier: string;\n\terrorURL?: string;\n\tnewUserURL?: string;\n\tlink?: {\n\t\temail: string;\n\t\tuserId: string;\n\t};\n\texpiresAt: number;\n\trequestSignUp?: boolean;\n\t[key: string]: any;\n};\n\nconst {\n\tget: getOAuthState,\n\t/**\n\t * @internal This is unsafe to be used directly. Use setOAuthState instead.\n\t */\n\tset: setOAuthState,\n} = defineRequestState<OAuthState | null>(() => null);\n\nexport { getOAuthState, setOAuthState };\n"],"mappings":";;;AAgBA,MAAM,EACL,KAAK,eAIL,KAAK,kBACF,yBAA4C,KAAK"}