claims

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2019 License: MIT Imports: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasClaims

func HasClaims(userClaims map[string]interface{}, requiredClaims map[string]string) bool

HasClaims is used to determine if a set of userClaims matches the requiredClaims

Types

type JWTClaims added in v1.1.2

type JWTClaims struct {
	Email        string                 `json:"email"`
	AppMetaData  map[string]interface{} `json:"app_metadata"`
	UserMetaData map[string]interface{} `json:"user_metadata"`
	jwt.StandardClaims
}

JWTClaims represents the JWT claims information.

Jump to

Keyboard shortcuts

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