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

Method GetSubject

map_claims.go:38–40  ·  view source on GitHub ↗

GetSubject implements the Claims interface.

()

Source from the content-addressed store, hash-verified

36
37// GetSubject implements the Claims interface.
38func (m MapClaims) GetSubject() (string, error) {
39 return m.parseString("sub")
40}
41
42// parseNumericDate tries to parse a key in the map claims type as a number
43// date. This will succeed, if the underlying type is either a [float64] or a

Callers

nothing calls this directly

Calls 1

parseStringMethod · 0.95

Tested by

no test coverage detected