Trouble redirecting users to sign up page

Hi there,

I can’t figure out how to pass the screen_hint parameter /authorize to the New Universal Login experience.

I’m using the PHP quick start code to log users in:

<?php

// login.php

require ‘vendor/autoload.php’;
use Auth0\SDK\Auth0;

$auth0 = new Auth0([
‘domain’ => ‘YOUR_DOMAIN’,
‘client_id’ => ‘YOUR_CLIENT_ID’,
‘client_secret’ => ‘YOUR_CLIENT_SECRET’,
‘redirect_uri’ => ‘https://YOUR_APP/callback’,
‘scope’ => ‘openid profile email’,
]);

$auth0->login();

(With my info in there, of course) - Any guidance greatly appreciated, I’m probably missing something right in front of me. I’ve tried a few different things I’ve seen in the forums to no avail.

I found a solution for my issue - for anyone else that is using a plain PHP implementation:

Use an html link with the correct parameters from https://auth0.com/docs/flows/guides/auth-code/add-login-auth-code and add &screen_hint=signup to the end.

1 Like

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