utils

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HankoThirdpartyStateCookie = "hanko_thirdparty_state"
	HankoTokenQuery            = "hanko_token"
)

Variables

This section is empty.

Functions

func GenerateStateCookie

func GenerateStateCookie(config *config.Config, name string, state string, options CookieOptions) *http.Cookie

func MaskEmail added in v1.0.0

func MaskEmail(email string) string

func MaskUsername added in v1.0.0

func MaskUsername(username string) string

Types

type CookieOptions

type CookieOptions struct {
	MaxAge   int
	Path     string
	SameSite http.SameSite
}

Jump to

Keyboard shortcuts

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