Hi @bjn , you can use extraQueryParameters
. , you can add the prompt=signup
parameter to the extraQueryParameters
option in the AuthenticationParameters
object.
Here's an example of how you can modify your loginRedirect
call to achieve this:
const authParams = {
scopes: ["openid", "profile"],
extraQueryParameters: {
prompt: "signup"
}
};
instance.loginRedirect(authParams);
This will add the prompt=signup
parameter to the authorization request, which will prompt the user to sign up instead of signing in.
Note that this will only work if the Azure AD B2C policy has a sign-up flow configured. If there is no sign-up flow configured, the user will be redirected to the regular sign-in page. Another thread to reference here.
Please let me know if you have any questions and I can help you further.
If this answer helps you please mark "Accept Answer" so other users can reference it.
Thank you,
James