feat: fix nonce not parsed issue in fastAutoSignin() (#3153)

* fix: fix nonce none passed when auto sign enabled

* fix: fix query error
This commit is contained in:
DacongDA 2024-08-30 22:29:23 +08:00 committed by GitHub
parent 1adb172d6b
commit 45dd4cc344
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -58,7 +58,7 @@ func fastAutoSignin(ctx *context.Context) (string, error) {
redirectUri := ctx.Input.Query("redirect_uri") redirectUri := ctx.Input.Query("redirect_uri")
scope := ctx.Input.Query("scope") scope := ctx.Input.Query("scope")
state := ctx.Input.Query("state") state := ctx.Input.Query("state")
nonce := "" nonce := ctx.Input.Query("nonce")
codeChallenge := ctx.Input.Query("code_challenge") codeChallenge := ctx.Input.Query("code_challenge")
if clientId == "" || responseType != "code" || redirectUri == "" { if clientId == "" || responseType != "code" || redirectUri == "" {
return "", nil return "", nil