This commit is contained in:
wjqserver 2025-04-21 18:52:45 +08:00
parent 558d3fbb0b
commit d79aeaaacd
10 changed files with 214 additions and 215 deletions

View file

@ -1,7 +1,6 @@
package auth
import (
"context"
"fmt"
"ghproxy/config"
@ -36,7 +35,7 @@ func Init(cfg *config.Config) {
logDebug("Auth Init")
}
func AuthHandler(ctx context.Context, c *app.RequestContext, cfg *config.Config) (isValid bool, err error) {
func AuthHandler(c *app.RequestContext, cfg *config.Config) (isValid bool, err error) {
if cfg.Auth.Method == "parameters" {
isValid, err = AuthParametersHandler(c, cfg)
return isValid, err