From e841583a787bd429a12975b436bc37fffa9f99b3 Mon Sep 17 00:00:00 2001 From: jstoker Date: Thu, 6 Mar 2025 11:58:54 +0000 Subject: [PATCH] fix(msha): change auth regex for unsupported providers to allow providers with numbers Fix regression from #844 within the 2.x release and applies the same partial fix in #895 in the other code path. This is to support providers such as Azure AD B2C or Auth0, which usually would be using 'aadb2c' or 'auth0'. --- src/msha/auth/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msha/auth/index.ts b/src/msha/auth/index.ts index 27317821..e6534fbf 100644 --- a/src/msha/auth/index.ts +++ b/src/msha/auth/index.ts @@ -25,7 +25,7 @@ function getAuthPaths(isCustomAuth: boolean): Path[] { paths.push({ method: "GET", // For providers with custom auth support not implemented, revert to old behavior - route: /^\/\.auth\/login\/(?twitter|[a-z]+)(\?.*)?$/i, + route: /^\/\.auth\/login\/(?twitter|[a-z0-9]+)(\?.*)?$/i, function: "auth-login-provider", }); paths.push({