jwtHelper

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

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

Go to latest
Published: Apr 17, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateToken

func GenerateToken(username, password string) (string, error)

JWT encryption, generate and return token param username param password return string,error

Types

type Claims

type Claims struct {
	UserName string
	Password string
	jwt.StandardClaims
}

func ParseToken

func ParseToken(tokenStr string) (*Claims, error)

JWT parses the token and verifies param tokenStr retrun *Claims, error

Jump to

Keyboard shortcuts

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