authorization

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Gen

func Gen(user model.User) (tokenString string, err error)

Gen Service

func Parse

func Parse(tokenString string) (ID int, ProfileID int, err error)

Parse Service

Types

type Claims

type Claims struct {
	ID        int    `json:"id"`
	Type      int    `json:"type"`
	ProfileID int    `json:"profileID"`
	Name      string `json:"profile.name"`
	Desc      string `json:"profile.desc"`
	jwt.StandardClaims
}

Claims struct

Jump to

Keyboard shortcuts

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