token

package
v0.0.0-...-76d690f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JWTPayload

type JWTPayload struct {
	Audience  string `json:"aud,omitempty"`
	ID        string `json:"jti,omitempty"`
	Issuer    string `json:"iss,omitempty"`
	Subject   string `json:"sub,omitempty"`
	ProductID string `json:"product_id"`
	AuthType  string `json:"auth_type"`
}

func ValidateToken

func ValidateToken(tokenString string, publicKeysURL string) (*JWTPayload, error)

type TokenError

type TokenError struct {
	Status  int
	Message string
}

func NewTokenError

func NewTokenError(status int, message string) TokenError

func (TokenError) Error

func (e TokenError) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL