jwtutils

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAudiencesFromJWT

func GetAudiencesFromJWT(token string) ([]string, bool)

GetAudiencesFromJWT parses the passed jwt token and returns the aud claim as a slice of strings

func GetStringFromJWT

func GetStringFromJWT(token, key string) (string, bool)

Types

type ResultSet

type ResultSet []struct {
	Value interface{}
	Set   bool
}

ResultSet is a slice of values with an additional value indicating if it was set

func GetFromJWT

func GetFromJWT(token string, key ...string) (values ResultSet)

Jump to

Keyboard shortcuts

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