jwt

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractClaims

func ExtractClaims(t *testing.T, token string) *jwt.Claims

ExtractClaims validates a token and returns its claims

func ExtractMFAChallengeClaims

func ExtractMFAChallengeClaims(t *testing.T, token string) *jwt.Claims

ExtractMFAChallengeClaims validates an MFA challenge token and returns its claims

func ExtractMFASetupAudience

func ExtractMFASetupAudience(t *testing.T, token string) []string

ExtractMFASetupAudience validates an MFA setup token and returns the audience

func ExtractTenantID

func ExtractTenantID(t *testing.T, token string) uuid.UUID

ExtractTenantID validates a JWT and returns the tenant ID

func ExtractUserID

func ExtractUserID(t *testing.T, token string) uuid.UUID

ExtractUserID validates a JWT and returns the user ID

Types

This section is empty.

Jump to

Keyboard shortcuts

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