Universal Login Page is not working with wordpress Plugin

Hi Team,

We have enabled sales-force community login it is working fine, then we enabled Universal Login Page, This works well with /wp-login.php, but on custom login button with on click event it stops working it says " There was a problem with your log in: Invalid ID token [error code: invalid_id_token]"

Here is the code

$options = WP_Auth0_Options::Instance();
$lock_options = new WP_Auth0_Lock( $specialSettings );
$use_sso = ! isset( $_GET[‘skip_sso’] ) && $options->get( ‘sso’, false );
$use_passwordless = $options->get( ‘passwordless_enabled’, false );
$lock_cdn_url = $options->get( $use_passwordless ? ‘passwordless_cdn_url’ : ‘cdn_url’ );

$optData = $options->get_options();
$domain = $optData['domain'];

wp_localize_script( 'btn-custom', 'btn_object',
        array( 'ajax_url' => admin_url( 'admin-ajax.php' ) , 'settings'        => $lock_options->get_lock_options(), 'ready'           => wp_auth0_is_ready(), 'domain'          => $domain, 'clientId'        => $options->get( 'client_id' ) , 'stateCookieName' => WP_Auth0_State_Handler::get_storage_cookie_name(),
			'nonceCookieName' => WP_Auth0_Nonce_Handler::get_storage_cookie_name()) );

Here is the jquery

jQuery(window).on(‘load’, function() {

var webAuth = new auth0.WebAuth({
	domain:       btn_object.domain,
	clientID:     btn_object.clientId,
	responseType:    btn_object.settings.auth.responseType,
	scope:    btn_object.settings.auth.params.scope,
	redirectUri: btn_object.settings.auth.redirectUrl

var loginBtn = jQuery('.salesforceLoginButton');

  loginBtn.on('click', function(e) {
		connection: 'salesforce-community',
		response_type:    btn_object.settings.auth.responseType,
		redirect_uri: btn_object.settings.auth.redirectUrl


Also it says Lock Js URL is invalid.


Hi there @ashish.perisun, welcome to back to the Auth0 Community!

What version of the plugin are you currently running? Thanks in advance!

Its latest version I am using