validate

package module
v0.0.0-...-8cd5058 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GuardianUser

type GuardianUser struct {
	UserID     float64       `json:"userId"`
	Username   string        `json:"sub"`
	Email      string        `json:"email"`
	Roles      []interface{} `json:"roles"`
	Expiration float64       `json:"exp"`
	IssuedAt   float64       `json:"iat"`
	jwt.RegisteredClaims
}

func ValidateUser

func ValidateUser(secret, tokenString string) (*GuardianUser, error)

Jump to

Keyboard shortcuts

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