You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/auth-next-client/README.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -582,7 +582,7 @@ The session type returned by `useImmutableSession`. Note that `accessToken` is i
582
582
interfaceImmutableSession {
583
583
// accessToken is NOT exposed -- use getAccessToken() instead
584
584
refreshToken?:string;
585
-
idToken?:string;
585
+
idToken?:string;// Only present transiently after sign-in or token refresh (not stored in cookie)
586
586
accessTokenExpires:number;
587
587
zkEvm?: {
588
588
ethAddress:string;
@@ -597,6 +597,8 @@ interface ImmutableSession {
597
597
}
598
598
```
599
599
600
+
> **Note:** The `idToken` is **not** stored in the session cookie (to avoid CloudFront 413 errors from oversized headers). It is only present in the session response transiently after sign-in or token refresh. `@imtbl/auth-next-client` automatically persists it in `localStorage` so that `getUser()` always returns a valid `idToken` for wallet operations. All data extracted from the idToken (`email`, `nickname`, `zkEvm`) remains in the cookie as separate fields and is always available in the session.
601
+
600
602
### LoginConfig
601
603
602
604
Configuration for the `useLogin` hook's login functions:
0 commit comments