- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for ParseWithClaims (0.13 seconds)
-
internal/jwt/parser.go
} } return nil, jwtgo.NewValidationError(fmt.Sprintf("signing method (%s) is unavailable.", string(alg)), jwtgo.ValidationErrorUnverifiable) } // ParseWithClaims - parse the token string, valid methods. func ParseWithClaims(tokenStr string, claims *MapClaims, fn func(*MapClaims) ([]byte, error)) error { // Key lookup function has to be provided. if fn == nil { // keyFunc was not provided, return error.
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 14.1K bytes - Click Count (0) -
internal/auth/credentials.go
return nil, errors.New("invalid argument") } claims := jwt.NewMapClaims() stsTokenCallback := func(claims *jwt.MapClaims) ([]byte, error) { return []byte(secretKey), nil } if err := jwt.ParseWithClaims(token, claims, stsTokenCallback); err != nil { return nil, err } return claims, nil } // GetNewCredentials generates and returns new credential.
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 11.8K bytes - Click Count (0)