Azure Static Web Apps login with popup

Viewed 44

This query is regarding authentication/login in single page applications using Azure Static Web Apps (SWA).

With MSAL.js we can login either with a popup (loginPopup) or redirect(loginRedirect) as in Microsoft documentation. But when working with SWAs, currently documentation only shows login by navigating to /.auth/login/{provider}. Is it possible to do popup based login in Azure SWA?

The request is for a solution where login initiator script knows if login succeeded e.g. in MSAL.js loginPopup().then(). I like to avoid using solutions like window.open where the initiator is unaware of login status.

0 Answers
Related