I’m very confused, how do I utilize the different prompt screens for the New Universal Login Experience?
I want to create a flow that requires the user to verify their email. How would I force the user to this prompt’s screen if they haven’t verified? https://auth0.com/docs/universal-login/prompt-login-email-verification
Hi @brettgoulder ,
You can force email verification with a rule. The rule will block the user until they verify their email. You could have the rule send a new verification email every time they log in.
Question: How do I set up forced email verification?
Answer:
Forced email verification can be accomplished in a Post-Login Action. If you would like to make a new verification email available to your user, it could be done through your application by leveraging the Management API POST api/v2/jobs/verification-email endpoint.
The Action would look like the following:
exports.onExecutePostLogin = async (event, api) => {
if (!event.user.email_verified) {
api.access.deny('Please verify yo…
Thanks Dan, but specifically, how do I redirect them to that prompt that I linked to?
You can send them an email with a link with this endpoint , or you can create a link directly with this endpoint .
1 Like
system
Closed
February 12, 2021, 6:22pm
6
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.