Documentation ¶
Index ¶
Constants ¶
View Source
const ( AuthTokenName = "token" AuthUserIdCtxKey = "auth_uid" )
View Source
const IrisCtxKey = "irisctx"
Variables ¶
View Source
var AuthCfg = &authCfgType{ CookieExpires: 7 * 24 * time.Hour, }
Functions ¶
Types ¶
type Auth ¶
func (*Auth) SetLoginCookie ¶ added in v1.2.3
SetLoginCookie set jwt token to cookies
Click to show internal directories.
Click to hide internal directories.