Versions in this module Expand all Collapse all v0 v0.4.0 Feb 28, 2021 Changes in this version + const AccessTokenDuration + const AuthorizationCodeDuration + const PayloadBase64Size + const PayloadSize + const SignatureBase64Size + const SignatureSize + const SignedBase64Size + const SignedSize + const TokenAudienceSize + const UnixTimestampSize + func ExtractHeaderToken(r *http.Request) *string + type Parsed struct + Audience []byte + ExpiresAt uint32 + func (t Parsed) Equal(t2 Parsed) bool + func (t Parsed) Payload() (b Payload) + func (t Parsed) Sign(key []byte) (token Signed, err error) + func (t Parsed) Signed(sig Signature) (s Signed) + func (t Parsed) Verify(key []byte, sig Signature) error + type Payload [PayloadSize]byte + func NewPayloadFromBase64(b64 []byte) (p Payload, err error) + func (p Payload) Base64() []byte + func (p Payload) Equal(p2 Payload) bool + func (p Payload) Parse() Parsed + func (p Payload) Sign(key []byte) (Signed, error) + func (p Payload) Signed(sig Signature) (signed Signed) + func (p Payload) Verify(key []byte, sig Signature) error + type Signature [SignatureSize]byte + func NewSignatureFromBase64(b64 []byte) (s Signature, err error) + func (s Signature) Base64() []byte + func (s Signature) Equal(s2 Signature) bool + type Signed [SignedSize]byte + func NewSignedFromBase64(b64 []byte) (s Signed, err error) + func NewSignedFromBase64WithVerify(key []byte, b64 []byte) (s Signed, err error) + func (s Signed) Base64() []byte + func (s Signed) Equal(s2 Signed) bool + func (s Signed) Parse() Parsed + func (s Signed) Payload() (p Payload) + func (s Signed) Signature() (sig Signature) + func (s Signed) Verify(key []byte) error