jwt

package
v0.0.0-...-f3f4c76 Latest Latest
Warning

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

Go to latest
Published: May 11, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Claims

func Claims(r *http.Request) (*claims, error)

Claims returns the claims in the request

func ClaimsFromToken

func ClaimsFromToken(token string) (*claims, error)

ClaimsFromToken creates claims from given token

func GetAudience

func GetAudience(r *http.Request) (string, error)

GetAudience get user email address from request while registering action/user it is useful

func GetToken

func GetToken(r *http.Request) string

GetToken makes a token from a request

func GetTokenWebsocket

func GetTokenWebsocket(r *http.Request) string

GetTokenWebsocket makes a token from a request

func GetUserEmail

func GetUserEmail(r *http.Request) (string, error)

GetUserEmail get user email address from request while registering action/user it is useful

func GetUserID

func GetUserID(r *http.Request) (string, error)

GetUserID get a user id from request, will be subid if it exists, otherwise sub

func ValidateOnParse

func ValidateOnParse(yes bool)

ValidateOnParse will say whether the token should be validated when the token is parsed Default is yes

Types

This section is empty.

Jump to

Keyboard shortcuts

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