utils

package
v0.0.0-...-3e42db4 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateToken

func GenerateToken(claims JwtClaims) (string, error)

Types

type JwtClaims

type JwtClaims struct {
	UserId int64 `json:"userId"`
	Exp    int64 `json:"exp"`
}

func ParseToken

func ParseToken(tokenString string) (*JwtClaims, error)

func (JwtClaims) Valid

func (c JwtClaims) Valid() error

Jump to

Keyboard shortcuts

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