auth

package module
v0.0.0-...-8478c20 Latest Latest
Warning

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

Go to latest
Published: May 18, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseAccessToken

func ParseAccessToken(accessToken string) (string, error)

Types

type Auth

type Auth struct {
	DB *sqlx.DB
}

func (*Auth) GetUser

func (a *Auth) GetUser(c *gin.Context)

func (*Auth) SignIn

func (a *Auth) SignIn(c *gin.Context)

func (*Auth) SignUp

func (a *Auth) SignUp(c *gin.Context)

type TokenClaims

type TokenClaims struct {
	jwt.StandardClaims
	UserId string `json:"user_id"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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