MCPcopy Create free account
hub / github.com/TalkingData/owl / ValidateToken

Function ValidateToken

api/token.go:55–61  ·  view source on GitHub ↗
(tokenString string)

Source from the content-addressed store, hash-verified

53}
54
55func ValidateToken(tokenString string) (*jwt.Token, error) {
56 token, err := parseToken(tokenString)
57 if err != nil {
58 return nil, err
59 }
60 return token, nil
61}
62
63func parseToken(tokenString string) (*jwt.Token, error) {
64 token, err := jwt.ParseWithClaims(tokenString, jwt.MapClaims{}, func(token *jwt.Token) (interface{}, error) {

Callers 4

LoginFunction · 0.85
LogoutFunction · 0.85
AuthIAMFunction · 0.85
AuthMySQLFunction · 0.85

Calls 1

parseTokenFunction · 0.85

Tested by

no test coverage detected