Optional ExperimentalencodeOptionalgetRequired when reading cookies from a custom store. If both getAll and
setAll are omitted in a browser runtime, the client falls back to
reading via document.cookie. Tokens and PKCE code verifiers are still
persisted in cookies regardless of the encode option, so cookie access
(custom or fallback) is required for auth to work.
OptionalsetRequired alongside getAll when using a custom cookie store. If both
getAll and setAll are omitted in a browser runtime, the client falls
back to writing via document.cookie.
If set to true, only the user's session (access and refresh tokens) will be encoded in cookies. The user object will be encoded in local storage if the
userStorageoption is not provided when creating the client.You should keep this option the same between
createBrowserClient()andcreateServerClient(). When set totokens-onlyaccessing theuserproperty on the data returned fromgetSession()will only be possible if the user has already been stored in the separate storage. It's best to usegetClaims()instead to avoid surprises.