mirror of
https://gitlab.durp.info/durfy/modules/durpify.git
synced 2026-05-07 08:00:30 -05:00
update
This commit is contained in:
parent
73830d57b8
commit
b4562a1da4
13 changed files with 89 additions and 130 deletions
|
|
@ -3,8 +3,8 @@ package middleware
|
|||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"github.com/charmbracelet/log"
|
||||
"gitlab.com/developerdurp/durpify/handlers"
|
||||
"gitlab.com/developerdurp/durpify/logger"
|
||||
"net/http"
|
||||
"strings"
|
||||
"time"
|
||||
|
|
@ -117,7 +117,7 @@ func (cfg *AuthConfig) validateToken(tokenString string) (*jwt.Token, error) {
|
|||
options := keyfunc.Options{
|
||||
Ctx: ctx,
|
||||
RefreshErrorHandler: func(err error) {
|
||||
logger.LogError("There was an error with the jwt.Keyfunc" + err.Error())
|
||||
log.Error("There was an error with the jwt.Keyfunc" + err.Error())
|
||||
},
|
||||
RefreshInterval: time.Hour,
|
||||
RefreshRateLimit: time.Minute * 5,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue