- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for NewWithClaims (0.06 sec)
-
internal/auth/credentials.go
} // JWTSignWithAccessKey - generates a session token. func JWTSignWithAccessKey(accessKey string, m map[string]interface{}, tokenSecret string) (string, error) { m["accessKey"] = accessKey jwt := jwtgo.NewWithClaims(jwtgo.SigningMethodHS512, jwtgo.MapClaims(m)) return jwt.SignedString([]byte(tokenSecret)) } // ExtractClaims extracts JWT claims from a security token using a secret key
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue May 28 17:14:16 UTC 2024 - 12K bytes - Viewed (0)