mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-02-14 17:02:27 +00:00
fix: hash the refresh token in the DB (security) (#379)
This commit is contained in:
committed by
GitHub
parent
26b2de4f00
commit
8c963818bb
@@ -153,7 +153,7 @@ func (s *TestService) SeedDatabase() error {
|
||||
}
|
||||
|
||||
refreshToken := model.OidcRefreshToken{
|
||||
Token: "ou87UDg249r1StBLYkMEqy9TXDbV5HmGuDpMcZDo",
|
||||
Token: utils.CreateSha256Hash("ou87UDg249r1StBLYkMEqy9TXDbV5HmGuDpMcZDo"),
|
||||
ExpiresAt: datatype.DateTime(time.Now().Add(24 * time.Hour)),
|
||||
Scope: "openid profile email",
|
||||
UserID: users[0].ID,
|
||||
|
||||
Reference in New Issue
Block a user