utils

package
v0.0.0-...-b7fd926 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeMD5

func EncodeMD5(value string) string

EncodeMD5 md5 encryption

func GenerateTokens

func GenerateTokens(userId string, isSuperAdmin bool) (string, string, error)

Types

type LetscrumClaims

type LetscrumClaims struct {
	jwt.StandardClaims

	IsSuperAdmin bool `json:"is_super_admin"`
}

func AuthJWT

func AuthJWT(ctx context.Context) (*LetscrumClaims, error)

func ParseToken

func ParseToken(token string) (*LetscrumClaims, error)

ParseToken parsing token

Jump to

Keyboard shortcuts

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