We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b22838 commit 8577eb2Copy full SHA for 8577eb2
packages/auth/src/platform_browser/index.ts
@@ -91,8 +91,8 @@ export function getAuth(app: FirebaseApp = getApp()): Auth {
91
92
const authTokenSyncPath = getExperimentalSetting('authTokenSyncURL');
93
// Don't allow urls (XSS possibility), only paths on the same domain
94
- // (starting with '/')
95
- if (authTokenSyncPath && authTokenSyncPath.startsWith('/')) {
+ // (starting with a single '/')
+ if (authTokenSyncPath && authTokenSyncPath.match(/^\/[^\/].*/)) {
96
const mintCookie = mintCookieFactory(authTokenSyncPath);
97
beforeAuthStateChanged(auth, mintCookie, () =>
98
mintCookie(auth.currentUser)
0 commit comments