Error when using Custom domains, and PKCE Passwordless Login flow in Electron

Hi everyone

I am having some problems wiht custom domains and PKCE auth flow and was wondering if someone could help me out?

I’m using the PKCE login method in my electron app, and am trying to hit the authorize endpoint after having setup up my custom domain.

However I keep getting this error:


This is the request I am trying to load in an Electron BrowserWindow:


I’ve enabled custom domains in tenant settings, but that doesn’t seemed to have helped either. The custom domains have been verified and are accessible.

This flow has worked without custom domains, its only with a custom domain that I am experiencing this issue

Thanks all


Sorry just updating, the authorize Url I am actually building is this:


Closing as I’ve solved, but leaving solution here for anyone else :slight_smile:

Need to do the additional config for Lock as listed in this article:

var lock = new Auth0Lock(config.clientID, config.auth0Domain, {
  //code omitted for brevity
  configurationBaseUrl: config.clientConfigurationBaseUrl,
  overrides: {
  	__tenant: config.auth0Tenant,
  	__token_issuer: 'YOUR_CUSTOM_DOMAIN'
  //code omitted for brevity