auth

package
v0.0.0-...-a602de9 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 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 Auth

type Auth struct {
	Key []byte
}

func New

func New(key string) (*Auth, error)

func (*Auth) GetJWT

func (a *Auth) GetJWT(user *gauth.Userinfo) (string, error)

func (*Auth) ParseJWT

func (a *Auth) ParseJWT(tokenStr string) (*Claims, error)

type Claims

type Claims struct {
	User *gauth.Userinfo `json:"user_info"`
	jwt.StandardClaims
}

Jump to

Keyboard shortcuts

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