Account Recovery
Thor has forgotten his password on a Sunday morning, just before a flight-booking deadline. He selects Forgot password? on the Wayfinder sign-in screen and receives a recovery email a few seconds later. He opens the link, sets a new password, and is back in his Wayfinder account before the airline's price-hold expires.
Complete Setup before starting this walkthrough.
Account Recovery covers the requirements story behind this use case.
Walkthrough Setup
-
Configure an email notification sender so the recovery email can be delivered. Have these values ready:
Field Value SMTP host Your mail provider SMTP credentials Username and password / API key Sender name What appears as the "From" name Email template The recovery email body -
Add a recovery flow. Pick the tab that matches the path you used in Setup.
- Quick Start
- Build It Yourself
The bundle already includes a recovery flow attached to WAYFINDER. No further action is needed.
In the ThunderID Console, navigate to Flows and create a flow that:
- Looks up the user by email.
- Generates a one-time link.
- Sends the recovery email through the notification sender.
- Lands the user on a Set new password screen.
Then attach the flow to WAYFINDER so the Forgot password? action triggers it. See Build a Flow.
Pick Your Pattern
Redirect-based
In the redirect-based pattern, the consumer app sends the user to ThunderID for the entire recovery experience. The Wayfinder web frontend is configured exactly this way: the Sign in button triggers an OIDC redirect to ThunderID. From there, the user picks Forgot password?, completes the recovery flow, and returns to Wayfinder to sign in with the new password.
Try the Use Case
- Open
http://localhost:5173and select Sign in. The browser navigates to ThunderID. - On the ThunderID sign-in page, select Forgot password?.
- Enter Thor's email and submit. ThunderID runs the recovery flow and sends Thor a recovery email.
- Open the email in Thor's inbox and open the link inside.
- ThunderID renders a Set new password screen. Enter a new password and submit.
- ThunderID shows a confirmation and returns Thor to Wayfinder. Select Sign in again and sign in with the new password.
App-native step-by-step
Coming soon. See the App-native pattern for what to expect.
App-native managed
Coming soon. See the App-native pattern for what to expect.