auth

package
v0.0.0-...-bc492cb Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hash

func Hash() []byte

func Sign

func Sign(claims jwt.Claims) (string, error)

func Verify

func Verify(tokenString string) (*jwt.Token, error)

Types

type UserClaims

type UserClaims struct {
	ID       string `json:"id"`
	Username string `json:"username"`
	Picture  string `json:"picture"`
	jwt.RegisteredClaims
}

Jump to

Keyboard shortcuts

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