cookie

package
v1.22.1 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AccessTokenName = "at"
View Source
var HttpsCookie = false
View Source
var RefreshTokenName = "rt"

Functions

func GetAuth

func GetAuth(ctx server.Context) string

GetAuth 读token

func GetRefreshAuth

func GetRefreshAuth(ctx server.Context) string

GetRefreshAuth 读refresh token

func RemoveAuth

func RemoveAuth(ctx server.Context)

RemoveAuth 清除token

func Save

func Save(ctx server.Context, name string, value string, ttlHour int, domain string)

func SaveAuth

func SaveAuth(ctx server.Context, token string, ttlHour int, domain string)

SaveAuth 保存token

func SaveRefreshAuth

func SaveRefreshAuth(ctx server.Context, token string, ttlHour int, domain string)

SaveRefreshAuth 保存refresh token

Types

This section is empty.

Jump to

Keyboard shortcuts

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