package
Version:
v0.0.0-...-7bd48cf
Opens a new window with list of versions in this module.
Published: Jul 22, 2025
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Config struct {
AccessSecret string `json:",optional"`
AccessExpire time.Duration `json:",optional,default=1h"`
RefreshExpire time.Duration `json:",optional,default=720h"`
ExcludePaths []string `json:",optional"`
}
type Token struct {
AccessToken string
RefreshToken string
}
func Refresh(accessSecret, accessToken, refreshToken string, accessExpire, refreshExpire time.Duration, redis *redis.Client) (*Token, error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.