File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
platform_browser/persistence Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -76,11 +76,13 @@ export const enum Endpoint {
76
76
}
77
77
78
78
const CookieAuthProxiedEndpoints : string [ ] = [
79
+ Endpoint . FINALIZE_MFA_SIGN_IN ,
79
80
Endpoint . SIGN_IN_WITH_CUSTOM_TOKEN ,
80
81
Endpoint . SIGN_IN_WITH_EMAIL_LINK ,
81
82
Endpoint . SIGN_IN_WITH_IDP ,
82
83
Endpoint . SIGN_IN_WITH_PASSWORD ,
83
84
Endpoint . SIGN_IN_WITH_PHONE_NUMBER ,
85
+ Endpoint . SIGN_UP ,
84
86
Endpoint . TOKEN
85
87
] ;
86
88
@@ -291,7 +293,7 @@ export async function _getFinalTarget(
291
293
if ( authInternal . _getPersistenceType ( ) === PersistenceType . COOKIE ) {
292
294
const cookiePersistence =
293
295
authInternal . _getPersistence ( ) as CookiePersistence ;
294
- return cookiePersistence . _getFinalTarget ( finalTarget ) . toString ( ) ;
296
+ return cookiePersistence . _getFinalTarget ( auth , finalTarget ) . toString ( ) ;
295
297
}
296
298
}
297
299
Original file line number Diff line number Diff line change 15
15
* limitations under the License.
16
16
*/
17
17
18
- import { Persistence } from '../../model/public_types' ;
18
+ import { Auth , Persistence } from '../../model/public_types' ;
19
19
import type { CookieChangeEvent } from 'cookie-store' ;
20
20
21
21
const POLLING_INTERVAL_MS = 1_000 ;
@@ -49,12 +49,13 @@ export class CookiePersistence implements PersistenceInternal {
49
49
listenerUnsubscribes : Map < StorageEventListener , ( ) => void > = new Map ( ) ;
50
50
51
51
// used to get the URL to the backend to proxy to
52
- _getFinalTarget ( originalUrl : string ) : URL | string {
52
+ _getFinalTarget ( auth : Auth , originalUrl : string ) : URL | string {
53
53
if ( typeof window === undefined ) {
54
54
return originalUrl ;
55
55
}
56
56
const url = new URL ( `${ window . location . origin } /__cookies__` ) ;
57
57
url . searchParams . set ( 'finalTarget' , originalUrl ) ;
58
+ url . searchParams . set ( 'appName' , auth . app . name ) ;
58
59
return url ;
59
60
}
60
61
You can’t perform that action at this time.
0 commit comments