Skip to content

Commit 3e8176a

Browse files
ziXetjleclanche
authored andcommitted
use the refresh_token of the previous token in case of being in the grace period of re-using refresh token
1 parent 5b51da7 commit 3e8176a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

oauth2_provider/oauth2_validators.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,7 @@ def save_bearer_token(self, token, request, *args, **kwargs):
530530
else:
531531
# make sure that the token data we're returning matches
532532
# the existing token
533+
token["refresh_token"] = previous_access_token.refresh_token.token
533534
token["access_token"] = previous_access_token.token
534535
token["scope"] = previous_access_token.scope
535536

0 commit comments

Comments
 (0)