token

package
v0.0.0-...-27dac41 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 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 Token

type Token struct {
	SecretKey string
}

func NewToken

func NewToken() *Token

func (*Token) GenerateToken

func (t *Token) GenerateToken(userID string) (string, error)

func (*Token) VerifyToken

func (t *Token) VerifyToken(tokenString string) (jwt.MapClaims, error)

Fungsi untuk memverifikasi token JWT

Jump to

Keyboard shortcuts

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