auth

package
v1.145.0-pfs-237-jwt.1 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Claims

type Claims struct {
	Roles []string `json:"roles"`
	jwt.RegisteredClaims
}

type Context

type Context struct {
	context.Context
	User *shared.User
}

type JWT

type JWT struct {
	Secret string
}

func (JWT) Verify

func (j JWT) Verify(requestToken string) (*jwt.Token, error)

Jump to

Keyboard shortcuts

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