helpers

package
v0.0.0-...-e260bc1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Unlicense Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const AuthCookieName = "Session"

Variables

This section is empty.

Functions

func HashPassword

func HashPassword(password string) ([]byte, error)

HashPassword Hash a models.User password

func ResetCookie

func ResetCookie(name string, c *gin.Context)

func SetAuthJWTCookie

func SetAuthJWTCookie(content AuthCookieContent, c *gin.Context) error

Types

type AuthCookieContent

type AuthCookieContent struct {
	ID        uint
	ExpiresAt int64
}

Jump to

Keyboard shortcuts

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