File tree 1 file changed +2
-4
lines changed
packages/auth/src/core/util
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ const EMULATOR_WIDGET_PATH = 'emulator/auth/handler';
45
45
*
46
46
* @internal
47
47
*/
48
- const FIREBASE_APP_CHECK_FRAGMENT_ID = 'fac' ;
48
+ const FIREBASE_APP_CHECK_FRAGMENT_ID = encodeURIComponent ( 'fac' ) ;
49
49
50
50
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
51
51
type WidgetParams = {
@@ -118,9 +118,7 @@ export async function _getRedirectUrl(
118
118
// Sets the App Check token to pass to the widget
119
119
const appCheckToken = await auth . _getAppCheckToken ( ) ;
120
120
const appCheckTokenFragment = appCheckToken
121
- ? encodeURIComponent ( FIREBASE_APP_CHECK_FRAGMENT_ID ) +
122
- '=' +
123
- encodeURIComponent ( appCheckToken )
121
+ ? `${ FIREBASE_APP_CHECK_FRAGMENT_ID } =${ encodeURIComponent ( appCheckToken ) } `
124
122
: '' ;
125
123
126
124
return `${ getHandlerBase ( auth ) } ?${ querystring ( paramsDict ) . slice (
You can’t perform that action at this time.
0 commit comments