fix and update
This commit is contained in:
@@ -45,3 +45,11 @@ export async function finalizeFedcmLogin(accessToken: string) {
|
||||
export function shouldFinalizeFedcmLogin(pathname: string) {
|
||||
return pathname.startsWith('/auth/login');
|
||||
}
|
||||
|
||||
export function isFedcmLoginPopup() {
|
||||
if (typeof window === 'undefined') return false;
|
||||
if (window.opener) return true;
|
||||
if (window.IdentityProvider?.close) return true;
|
||||
const params = new URLSearchParams(window.location.search);
|
||||
return params.get('fedcm') === '1';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user