iflp
iflp

Reputation: 1874

auth0 invite-only application JWT not appended at the end of redirect url

I'm following this guide, but at the user activation step after successful email verification, the jwt token was not appended as shown here, but I got some other metadata instead:

http://localhost:3000/onboarding?supportSignUp=true&supportForgotPassword=true&email=mail%40test.com&message=Your%20email%20was%20verified.%20You%20can%20continue%20using%20the%20application.&success=true#

I'm using express and the auth0 nodejs api.

Upvotes: 0

Views: 358

Answers (1)

Nico Sabena
Nico Sabena

Reputation: 7064

You need to add the generated JWT yourself in the result_url.

This code uses API v2 to create a new email verification ticket. It is specifying the result_url argument as the local /Account/Activation action handler. And it is putting the generated JWT token as part of the query string.

After the user verifies his o her email address (in Auth0), he will be redirected to the result_url endpoint, with the token in the query string (/Account/Activation?userToken=xxxx in the sample). This piece of code handles that endpoint, verifying the token received and showing a view that allows the user to enter his password and POST the final activation (handled here).

Upvotes: 1

Related Questions