MCPcopy Create free account
hub / github.com/chartmuseum/auth / DecodeToken

Method DecodeToken

token.go:132–136  ·  view source on GitHub ↗
(signedString string)

Source from the content-addressed store, hash-verified

130}
131
132func (tokenDecoder *TokenDecoder) DecodeToken(signedString string) (*jwt.Token, error) {
133 return jwt.Parse(signedString, func(token *jwt.Token) (interface{}, error) {
134 return tokenDecoder.PublicKey, nil
135 })
136}

Callers 5

TestGenerateTokenMethod · 0.95
mainFunction · 0.95
authorizeBearerAuthMethod · 0.80

Calls

no outgoing calls