Documentation
¶
Index ¶
Constants ¶
View Source
const ( AUTH_HEADER = "authorization" REFRESH_TOKEN_HEADER = "x-refresh-token" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CookieManager ¶
type CookieManager struct {
// contains filtered or unexported fields
}
func NewCookie ¶
func NewCookie(cfg *config.Config) *CookieManager
func (*CookieManager) SetAccessToken ¶
func (cm *CookieManager) SetAccessToken(c *gin.Context, token string, age int64)
func (*CookieManager) SetRefreshToken ¶
func (cm *CookieManager) SetRefreshToken(c *gin.Context, token string, age int64)
Click to show internal directories.
Click to hide internal directories.