fix: wrong algo

This commit is contained in:
Derrick Hammer 2023-06-10 01:15:17 -04:00
parent 9b82fa7828
commit 86380c7b3a
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -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