cookie

package
v0.0.0-...-9336d3e Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteAdminCookie

func DeleteAdminCookie(gc *gin.Context)

DeleteAdminCookie sets the response cookie to empty

func DeleteMfaSession

func DeleteMfaSession(gc *gin.Context)

DeleteMfaSession deletes the mfa session cookies to expire

func DeleteSession

func DeleteSession(gc *gin.Context)

DeleteSession sets session cookies to expire

func GetAdminCookie

func GetAdminCookie(gc *gin.Context) (string, error)

GetAdminCookie gets the admin cookie from the request

func GetMfaSession

func GetMfaSession(gc *gin.Context) (string, error)

GetMfaSession gets the mfa session cookie from context

func GetSession

func GetSession(gc *gin.Context) (string, error)

GetSession gets the session cookie from context

func SetAdminCookie

func SetAdminCookie(gc *gin.Context, token string)

SetAdminCookie sets the admin cookie in the response

func SetMfaSession

func SetMfaSession(gc *gin.Context, sessionID string)

SetMfaSession sets the mfa session cookie in the response

func SetSession

func SetSession(gc *gin.Context, sessionID string)

SetSession sets the session cookie in the response

Types

This section is empty.

Jump to

Keyboard shortcuts

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