mirror of
https://github.com/casdoor/casdoor.git
synced 2025-09-10 09:52:56 +08:00
feat: delete the old token when refreshing token (#617)
Signed-off-by: Steve0x2a <stevesough@gmail.com>
This commit is contained in:
@@ -439,6 +439,7 @@ func RefreshToken(grantType string, refreshToken string, scope string, clientId
|
|||||||
TokenType: "Bearer",
|
TokenType: "Bearer",
|
||||||
}
|
}
|
||||||
AddToken(newToken)
|
AddToken(newToken)
|
||||||
|
DeleteToken(&token)
|
||||||
|
|
||||||
tokenWrapper := &TokenWrapper{
|
tokenWrapper := &TokenWrapper{
|
||||||
AccessToken: token.AccessToken,
|
AccessToken: token.AccessToken,
|
||||||
|
Reference in New Issue
Block a user