Changes
1 changed files (+2/-2)
-
-
@@ -63,7 +63,7 @@ header.Add("Set-Cookie", cookie.String())} func (t *token) Validate(secret *projection.LoginJwtSecret) error { _, err := jwt.Parse(string(*t), func(token *jwt.Token) (interface{}, error) { _, err := jwt.Parse(string(*t), func(token *jwt.Token) (any, error) { return secret.Projection, nil }, jwt.WithValidMethods([]string{jwt.SigningMethodHS256.Alg()}))
-
@@ -74,7 +74,7 @@ func (t *token) FindUser(secret *projection.LoginJwtSecret, users *projection.Users, ) (*workspace.Users_User, error) { parsed, err := jwt.Parse(string(*t), func(token *jwt.Token) (interface{}, error) { parsed, err := jwt.Parse(string(*t), func(token *jwt.Token) (any, error) { return secret.Projection, nil }, jwt.WithValidMethods([]string{jwt.SigningMethodHS256.Alg()})) if err != nil {
-