MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / setLastAuthProviderCookie

Function setLastAuthProviderCookie

packages/auth/src/cookie.ts:15–23  ·  view source on GitHub ↗
(
  setCookie: ISetCookie,
  provider: string
)

Source from the content-addressed store, hash-verified

13}
14
15export function setLastAuthProviderCookie(
16 setCookie: ISetCookie,
17 provider: string
18): void {
19 setCookie('last-auth-provider', provider, {
20 maxAge: 60 * 60 * 24 * 365,
21 ...COOKIE_OPTIONS,
22 });
23}
24
25export function deleteSessionTokenCookie(setCookie: ISetCookie): void {
26 setCookie('session', '', {

Callers 3

auth.tsFile · 0.90
handleExistingUserFunction · 0.90
handleNewUserFunction · 0.90

Calls 1

setCookieFunction · 0.85

Tested by

no test coverage detected