Kind: Function
Source: atloria-monorepo/apps/web/src/app/p/[slugId]/lib/readerToken.ts
On an SSO / magic-link return the token arrives in the URL FRAGMENT
(#readerToken=...). Consume it: return the raw token and strip the fragment
from the address bar so it never lingers in history. Storage happens once we
know the projectId (the caller passes it or resolves it via /access/branding).
Signature
tsfunction consumeFragmentToken(): string | null
Returns: string | null
Was this page helpful?