Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeSegment ¶
func EncodeSegment ¶
func KeyIDFromCryptoKey ¶
Types ¶
type Claims ¶
type Claims struct { Subject uuid.UUID `json:"sub,omitempty"` Id string `json:"jti,omitempty"` Acr string `json:"acr,omitempty"` Issuer string `json:"iss,omitempty"` IssuedAt int64 `json:"iat,omitempty"` ExpiresAt int64 `json:"exp,omitempty"` NotBefore int64 `json:"nbf,omitempty"` Scope string `json:"scope"` Audience []string `json:"aud,omitempty"` Nonce string `json:"nonce,omitempty"` HasuraClaims HasuraClaims `json:"https://hasura.io/jwt/claims"` }
type HasuraClaims ¶
type Token ¶
type Token struct { RawToken string Header TokenHeader Claims Signature string }
func (*Token) SignedString ¶
func (t *Token) SignedString(key *rsa.PrivateKey) (string, error)
func (*Token) SigningString ¶
type TokenHeader ¶
Click to show internal directories.
Click to hide internal directories.