check refresh token expiration (fixed logic)
This commit is contained in:
parent
82b1b70535
commit
d7edd64efc
1 changed files with 1 additions and 1 deletions
|
@ -615,7 +615,7 @@ func (s *Storage) renewRefreshToken(currentRefreshToken string) (string, string,
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if refreshToken.Expiration.After(time.Now()) {
|
if refreshToken.Expiration.Before(time.Now()) {
|
||||||
return "", "", fmt.Errorf("expired refresh token")
|
return "", "", fmt.Errorf("expired refresh token")
|
||||||
}
|
}
|
||||||
// creates a new refresh token based on the current one
|
// creates a new refresh token based on the current one
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue