Bypass mode

This commit is contained in:
mr
2026-02-17 10:16:18 +01:00
parent 5f7289bb05
commit 048707bfe5
5 changed files with 29 additions and 4 deletions

View File

@@ -139,9 +139,11 @@ func (o *OAuthController) Refresh() {
o.Data["json"] = err
o.Ctx.ResponseWriter.WriteHeader(401)
} else {
newToken.ExpiresIn = 3600
o.Data["json"] = newToken
}
} else {
token.ExpiresIn = 3600
o.Data["json"] = token
}
o.ServeJSON()