Documentation ¶
Index ¶
Constants ¶
View Source
const ( ScopeUser = "user" ScopeCodeRead = "code:read" ScopeRefresh = "refresh" )
Variables ¶
View Source
var ( ExpiryAccessToken = 15 * time.Minute ExpiryRefreshToken = 15 * 24 * time.Hour )
Functions ¶
func SessionAuthMiddleware ¶
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) HandleLogout ¶
func (*Handler) HandleRefresh ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) GenerateToken ¶
Click to show internal directories.
Click to hide internal directories.