Przejdź do głównej zawartości

Interface: InitialAuth

Cold-start auth seed read from the first-party cookies. Maps 1:1 to the StorefrontProvider props initialIsAuthenticated / initialAccessToken / initialExpiresAt (and to CreateAuthStoreOptions).

Properties

accessToken

accessToken: string | null

Raw access token from the httpOnly cookie — seeded into memory only, never persisted to storage.


expiresAt

expiresAt: string | null

Absolute session expiry (ISO 8601) from the readable cookie, or null when unknown.


isAuthenticated

isAuthenticated: boolean

true when an access token OR the longer-lived session-expiry hint is present — drives the no-flash signed-in render even after the short access token lapsed.