MCPcopy
hub / github.com/golang-jwt/jwt / init

Function init

none.go:14–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12type unsafeNoneMagicConstant string
13
14func init() {
15 SigningMethodNone = &signingMethodNone{}
16 NoneSignatureTypeDisallowedError = newError("'none' signature type is not allowed", ErrTokenUnverifiable)
17
18 RegisterSigningMethod(SigningMethodNone.Alg(), func() SigningMethod {
19 return SigningMethodNone
20 })
21}
22
23func (m *signingMethodNone) Alg() string {
24 return "none"

Callers

nothing calls this directly

Calls 3

newErrorFunction · 0.85
RegisterSigningMethodFunction · 0.85
AlgMethod · 0.65

Tested by

no test coverage detected