token

package
v0.0.0-...-4aa8526 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func VerifyAccessToken

func VerifyAccessToken(tokenStr string) (jwtgo.MapClaims, error)

func VerifyRefreshToken

func VerifyRefreshToken(tokenStr string) (jwtgo.MapClaims, error)

Types

type AccessToken

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

func NewAccessToken

func NewAccessToken(claims jwtgo.MapClaims) (*AccessToken, error)

func (*AccessToken) ExpiresAt

func (t *AccessToken) ExpiresAt() time.Time

func (*AccessToken) String

func (t *AccessToken) String() string

type RefreshToken

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

func NewRefreshToken

func NewRefreshToken(claims jwtgo.MapClaims) (*RefreshToken, error)

func (*RefreshToken) ExpiresAt

func (t *RefreshToken) ExpiresAt() time.Time

func (*RefreshToken) String

func (t *RefreshToken) String() string

Jump to

Keyboard shortcuts

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