util: Fix session token expiration check #1230
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ func (s *KeyStorage) GetKey(info *SessionInfo) (*ecdsa.PrivateKey, error) {
|
|||
|
||||
pToken := s.tokenStore.Get(info.Owner, binID)
|
||||
if pToken != nil {
|
||||
if pToken.ExpiredAt() <= s.networkState.CurrentEpoch() {
|
||||
if pToken.ExpiredAt() < s.networkState.CurrentEpoch() {
|
||||
return nil, new(apistatus.SessionTokenExpired)
|
||||
}
|
||||
return pToken.SessionKey(), nil
|
||||
|
|
Loading…
Reference in a new issue