Help us shape the future of Go! Take the 2026 Go Developer Survey

jwtclaims

package
v2.17.2 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBoolClaim

func GetBoolClaim(m map[string]any, key string) bool

GetBoolClaim extracts a boolean claim from a map

func GetByPath

func GetByPath(m map[string]any, path string) mo.Option[any]

GetByPath extracts a value from a nested map using a dot-separated path

func GetStringClaim

func GetStringClaim(m map[string]any, key string) string

GetStringClaim extracts a string claim from a map

func GetStringSliceClaim

func GetStringSliceClaim(m map[string]any, key string) []string

GetStringSliceClaim extracts a string slice claim from a map. A single string value is split on commas or spaces (group/role claims are commonly delivered that way).

func ParseJWTClaims

func ParseJWTClaims(idToken string) map[string]any

ParseJWTClaims parses unverified JWT metadata for pre-verification routing.

Types

This section is empty.

Jump to

Keyboard shortcuts

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