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
when use refresh api after generate token api within 1 second, the new token will lose efficacy.
the source code as follow of RefreshAccessToken() in manager.go:
if err := m.tokenStore.Create(ctx, ti); err != nil {
return nil, err
}
if rcfg.IsRemoveAccess {
// remove the old access token
if err := m.tokenStore.RemoveByAccess(ctx, oldAccess); err != nil {
return nil, err
}
}
if rcfg.IsRemoveRefreshing && rv != "" {
// remove the old refresh token
if err := m.tokenStore.RemoveByRefresh(ctx, oldRefresh); err != nil {
return nil, err
}
}
it maybe bug when refresh token within 1 second, the new access token will be removed, because it will be the same as old one.
The text was updated successfully, but these errors were encountered:
JYXL1
changed the title
[bug]failed to fresh token
[bug]failed to refresh token
Mar 20, 2023
when use
refresh api
aftergenerate token api
within 1 second, the new token will lose efficacy.the source code as follow of
RefreshAccessToken()
inmanager.go
:it maybe bug when refresh token within 1 second, the new access token will be removed, because it will be the same as old one.
The text was updated successfully, but these errors were encountered: