Skip to content

Commit

Permalink
adding localhost URL for checks failure
Browse files Browse the repository at this point in the history
  • Loading branch information
bhparijat committed Dec 20, 2023
1 parent e58e683 commit 898f696
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/auth/src/core/util/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export async function _getRedirectUrl(

function getHandlerBase({ config }: AuthInternal): string {
if (!config.emulator) {
const isLocalhost = config.authDomain?.split(':')[0] === 'localhost';
const isLocalhost = config.authDomain?.split(':')[0] === 'localhost' || config.authDomain?.split(':')[0] === '127.0.0.1';
return (
(isLocalhost ? 'http' : 'https') +
`://${config.authDomain}/${WIDGET_PATH}`
Expand Down

0 comments on commit 898f696

Please sign in to comment.