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
> **Note:** In resolver mode, the SDK builds the `redirect_uri` dynamically from the resolved domain. You do not need to set it per request. If you override `redirect_uri` in `authorization_params`, the SDK uses your value as-is.
103
+
## Passing store_options
104
+
105
+
In resolver mode, pass `store_options` to each SDK call so the resolver can inspect the
106
+
current request and select the correct domain. If `store_options` are omitted, the resolver
In resolver mode, sessions are bound to the domain that created them. On each request, the SDK compares the session's stored domain against the current resolved domain:
306
+
In resolver mode, sessions are bound to the domain that created them. On each request, the SDK compares the session's stored domain against the current resolved domain. If the domain is missing or does not match:
277
307
278
-
-`get_user()` and `get_session()` return `None` on domain mismatch.
279
-
-`get_access_token()` raises `AccessTokenError` on domain mismatch.
308
+
-`get_user()` and `get_session()` return `None`.
309
+
-`get_access_token()` raises `AccessTokenError` (code `MISSING_SESSION_DOMAIN` if the session has no stored domain, `DOMAIN_MISMATCH` if the domains differ).
310
+
-`get_access_token_for_connection()` raises `AccessTokenForConnectionError` (same codes as above).
311
+
-`start_link_user()` and `start_unlink_user()` raise `StartLinkUserError`.
280
312
- Token refresh uses the session's stored domain, not the current request domain.
281
313
282
-
> **Warning:** If you switch from a static domain string to a resolver function, existing sessions that do not include a stored domain continue to work — the SDK treats the absent domain field as valid. New sessions will store the resolved domain automatically. Once old sessions expire, all sessions will be domain-aware.
314
+
> **Warning:** If you switch from a static domain string to a resolver function, existing sessions that do not include a stored domain are treated as **missing sessions**. The SDK cannot verify which domain originally created the session, so users will need to re-authenticate. New sessions store the resolved domain automatically.
315
+
316
+
> **Note:** If a login was started before the switch to resolver mode and completes after, the SDK falls back to the current resolved domain for token exchange. The resulting session will store the resolved domain and work normally going forward.
0 commit comments