From 556f11bbb9e901beaf90326321d80c62472c5066 Mon Sep 17 00:00:00 2001 From: fMeow Date: Tue, 12 Mar 2024 21:44:06 +0800 Subject: [PATCH] feat: oauth2-redirect accept flow in snake case --- dist/oauth2-redirect.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dist/oauth2-redirect.html b/dist/oauth2-redirect.html index a013fc82ee5..e769d1795b9 100644 --- a/dist/oauth2-redirect.html +++ b/dist/oauth2-redirect.html @@ -30,7 +30,9 @@ if (( oauth2.auth.schema.get("flow") === "accessCode"|| - oauth2.auth.schema.get("flow") === "authorizationCode" + oauth2.auth.schema.get("flow") === "authorizationCode" || + oauth2.auth.schema.get("flow") === "access_code"|| + oauth2.auth.schema.get("flow") === "authorization_code" ) && !oauth2.auth.code) { if (!isValid) { oauth2.errCb({