auth_service

package
v0.0.0-...-1cc7bd7 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth

func Auth(c *gin.Context)

func AuthorizeRequest

func AuthorizeRequest() gin.HandlerFunc

func Login

func Login(c *gin.Context)

Types

type JWTService

type JWTService interface {
	GenerateToken(email string, isUser bool) string
	ValidateToken(token string) (*jwt.Token, error)
}

func JWTAuthService

func JWTAuthService() JWTService

auth-jwt

Jump to

Keyboard shortcuts

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