webutil

package
v0.0.0-...-acda5ee Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAuthTokenCookie

func AddAuthTokenCookie(ctx *web.Context, token string)

AddAuthTokenCookie adds given token to a cookie

func AddAuthUserCookie

func AddAuthUserCookie(ctx *web.Context, user *entity.User)

AddAuthUserCookie generates Auth Token and adds a cookie

func GetSignUpAuthCookie

func GetSignUpAuthCookie(ctx *web.Context) string

GetSignUpAuthCookie returns the temporary temporary domain-wide Auth Token and removes it

func SetSignUpAuthCookie

func SetSignUpAuthCookie(ctx *web.Context, user *entity.User)

SetSignUpAuthCookie sets a temporary domain-wide Auth Token

Types

This section is empty.

Jump to

Keyboard shortcuts

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