jwt

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Jwt

type Jwt struct {
	// contains filtered or unexported fields
}

func New

func New(a int, r int) (*Jwt, error)

func (*Jwt) AccessToken

func (jwt *Jwt) AccessToken(uid uint, iss string) (*string, error)

func (*Jwt) RefreshToken

func (jwt *Jwt) RefreshToken(uid uint, iss string) (*string, *string, error)

func (*Jwt) Validate

func (jwt *Jwt) Validate(t string) (*TokenClaims, error)

type TokenClaims

type TokenClaims struct {
	UID  uint
	Type string
	Key  *string
	j.RegisteredClaims
}

Jump to

Keyboard shortcuts

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