appchecker

package module
v0.0.0-...-29079a3 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidToken       = errors.New("invalid token")
	ErrCannotFetchJWTKeys = errors.New("cannot get the jwt keys")
	ErrInvalidKeys        = errors.New("invalid jwt keys")
)

Functions

func GetTokenFromRequest

func GetTokenFromRequest(r *http.Request) *string

Types

type Verifier

type Verifier interface {
	VerifyToken(token string) error

	AppCheckVerifier(next http.Handler) http.Handler
}

func New

func New(projectsNum []string) Verifier

Jump to

Keyboard shortcuts

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