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: README.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -483,6 +483,12 @@ PKCE
483
483
PKCE support is controlled by the `useProofKeyForCodeExchange` property, and the `use_pkce` key in the settings dictionary.
484
484
It is disabled by default. When enabled, a new code verifier string is generated for every authorization request.
485
485
486
+
Refresh Token Rotation
487
+
----------------------
488
+
489
+
Refresh Token Rotation setting is controlled by the `refreshTokenRotationIsEnabled` property, and the `refresh_token_rotation` key in the settings dictionary.
490
+
It is enabled by default. When enabled, all calls that could rotate the refresh token are executed sequentially to ensure that only the most recently rotated refresh token is persisted.
Copy file name to clipboardExpand all lines: Sources/Base/OAuth2ClientConfig.swift
+15Lines changed: 15 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -102,6 +102,17 @@ open class OAuth2ClientConfig {
102
102
/// See https://tools.ietf.org/html/rfc7636
103
103
///
104
104
openvaruseProofKeyForCodeExchange=false
105
+
106
+
107
+
/// If the refresh token rotation is enabled, the authorization server issues a new refresh token with every access token refresh response (the previous refresh token is invalidated).
108
+
///
109
+
/// We need to know whether this functionality is enabled on the auth server to prevent concurrent calls to any operations that could rotate the refresh token.
110
+
/// If the refresh token rotation is enabled, these calls must always be executed sequentially to ensure that only the most recently rotated refresh token is persisted.
0 commit comments