auth

package
v1.149.0-pfs-237-creat... Latest Latest
Warning

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

Go to latest
Published: Feb 20, 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
}

func (Context) WithContext

func (c Context) WithContext(ctx context.Context) Context

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