File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
packages/auth/src/core/util Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @firebase/auth " : patch
3
+ ---
4
+
5
+ Fix issue where using signInWithRedirect in Firebase Studio required a route rewrite for the auth handler widget.
Original file line number Diff line number Diff line change @@ -129,7 +129,15 @@ export async function _getRedirectUrl(
129
129
130
130
function getHandlerBase ( { config } : AuthInternal ) : string {
131
131
if ( ! config . emulator ) {
132
- return `https://${ config . authDomain } /${ WIDGET_PATH } ` ;
132
+ const path = `https://${ config . authDomain } /${ WIDGET_PATH } ` ;
133
+ if (
134
+ typeof process !== 'undefined' &&
135
+ process . env . FIREBASE_USE_HANDLER_EXT
136
+ ) {
137
+ // Static servers require extensions to infer Content-Type
138
+ return `${ path } .html` ;
139
+ }
140
+ return path ;
133
141
}
134
142
135
143
return _emulatorUrl ( config , EMULATOR_WIDGET_PATH ) ;
You can’t perform that action at this time.
0 commit comments