MCPcopy Create free account
hub / github.com/TanStack/router / profile

Function profile

examples/solid/start-basic-authjs/src/utils/auth.ts:36–47  ·  view source on GitHub ↗
(profile, tokens)

Source from the content-addressed store, hash-verified

34 },
35 },
36 async profile(profile, tokens) {
37 await setCookie(
38 'auth0Token',
39 encodeURIComponent(tokens.access_token ?? ''),
40 )
41 await setCookie(
42 'auth0User',
43 encodeURIComponent(JSON.stringify(profile)),
44 )
45
46 return profile
47 },
48 }),
49 ],
50}

Callers

nothing calls this directly

Calls 1

setCookieFunction · 0.90

Tested by

no test coverage detected