fix: wrong algo
This commit is contained in:
parent
9b82fa7828
commit
86380c7b3a
|
@ -254,7 +254,7 @@ func VerifyLoginToken(token string) (*model.Account, error) {
|
||||||
return nil, ErrInvalidToken
|
return nil, ErrInvalidToken
|
||||||
}
|
}
|
||||||
|
|
||||||
_, err = jwt.Verify(jwt.HS256, jwtKey, []byte(token), blocklist)
|
_, err = jwt.Verify(jwt.EdDSA, jwtKey, []byte(token), blocklist)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
db.Get().Delete(&session)
|
db.Get().Delete(&session)
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
Loading…
Reference in New Issue