Successful Login In New Tab Takes User to blank {domain}/authorize/resume endpoint

When using loginWithPopup, is there anyway to control where the user is sent after successful login with Github? Right now it sends the user to the {domain}/authorize/resume endpoint which is just blank. Right now the flow goes like this:
Click login → new tab opens with github login screen → user signs in with git hub → the new tab is redirected to /authorize/resume.

I can’t find any documentation on this endpoint. Does anyone have any ideas?

Hi @dallinrldavis,

Welcome to the Auth0 Community!

Sure, you have two options for setting the redirect URL. You can either include it when you initialize the Auth0 client using createAuth0Client, or if you want to use a custom redirect URL for a specific call, you can include it in the loginWithPopup(options) method.

For example:

// Initialize the Auth0 client
const auth0 = await createAuth0Client({
  domain: 'your-auth0-domain',
  client_id: 'your-client-id',
  redirect_uri: 'your-callback-url',

// Define the PopupLoginOptions with a custom redirect_uri
const popupLoginOptions = {
  redirect_uri: 'your-custom-redirect-url',

// Call loginWithPopup with the specified options
try {
  await auth0.loginWithPopup(popupLoginOptions);
} catch (error) {
  console.error('Error during login with popup:', error);

I hope this helps!


This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.