mirror of
https://github.com/lukaszraczylo/traefikoidc.git
synced 2026-10-20 04:57:02 +00:00
Run token cache and blacklist cleanup every minute.
This commit is contained in:
@@ -311,7 +311,7 @@ func (t *TraefikOidc) buildAuthURL(redirectURL, state, nonce string) string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (t *TraefikOidc) startTokenCleanup() {
|
func (t *TraefikOidc) startTokenCleanup() {
|
||||||
ticker := time.NewTicker(5 * time.Minute)
|
ticker := time.NewTicker(1 * time.Minute)
|
||||||
go func() {
|
go func() {
|
||||||
for range ticker.C {
|
for range ticker.C {
|
||||||
t.logger.Debug("Cleaning up token cache")
|
t.logger.Debug("Cleaning up token cache")
|
||||||
|
|||||||
Reference in New Issue
Block a user