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
The following options are available for the session configuration.
441
+
The following options are available for the global session configuration.
441
442
442
443
| Option | Type | Default | Description |
443
444
| --- | --- | --- | --- |
444
-
| expirationCheck |`boolean`|`true`| Check if session is expired based on access token exp |
445
445
| automaticRefresh |`boolean`|`true`| Automatically refresh access token and session if refresh token is available (indicated by `canRefresh` property on user object) |
446
+
| expirationCheck |`boolean`|`true`| Check if session is expired based on access token exp |
447
+
| expirationThreshold |`number`|`0`| Amount of seconds before access token expiration to trigger automatic refresh |
446
448
| maxAge |`number`|`60 * 60 * 24` (1 day) | Maximum auth session duration in seconds |
447
449
| cookie | `` | `` | Additional cookie setting overrides for `sameSite` and `secure`|
448
450
451
+
The following options are available on every provider as overrides for the global session configuration.
452
+
453
+
| Option | Type | Default | Description |
454
+
| --- | --- | --- | --- |
455
+
| automaticRefresh |`boolean`|`true`| Check if session is expired based on access token exp |
456
+
| expirationCheck |`boolean`|`true`| Automatically refresh access token and session if refresh token is available (indicated by `canRefresh` property on user object) |
457
+
| expirationThreshold |`number`|`0`| Amount of seconds before access token expiration to trigger automatic refresh |
0 commit comments