1
0
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:
Alessandro (Ale) Segala
2025-03-25 07:36:53 -07:00
committed by GitHub
parent 26b2de4f00
commit 8c963818bb
2 changed files with 128 additions and 112 deletions

View File

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