Password Reset
API Reference
Subscribers
- GETGet subscribers
- POSTCreate subscriber
- POSTBulk create subscribers
- GETGet subscriber
- PUTUpdate subscriber
- DELDelete subscriber
- PUTUpdate subscriber credentials
- DELDelete subscriber credentials by providerId
- PATCHUpdate subscriber online status
- GETGet subscriber preferences
- GETGet subscriber global preferences
- PATCHUpdate subscriber preference
- PATCHUpdate subscriber global preferences
- GETGet in-app notification feed for a particular subscriber
- GETGet the unseen in-app notifications count for subscribers feed
- POSTMark a subscriber feed message as seen
- POSTMarks all the subscriber messages as read, unread, seen or unseen. Optionally you can pass feed id (or array) to mark messages of a particular feed.
- POSTMark message action as seen
- GETHandle providers oauth redirect
- GETHandle chat oauth
Topics
Notification
Workflows
Workflow Overrides
Workflow groups
Integrations
Layouts
Execution Details
Organizations
Password Reset
Help users reclaim access to their account via the ‘Password Reset’ or ‘Forgot Username’ functions
Intro
To help users re-establish access to their account securely, a password reset email should be succint and have a unique password reset URL that expires after a given time. This example uses the payload schema to fetch the unique expiring password reset link.
Explore the source code on GitHub
Preview
Code Example
import { workflow } from '@novu/framework';
import { renderPasswordResetEmail } from '../emails/password-reset';
import { zodControlSchema, zodPayloadSchema } from './schemas';
export const DropboxPasswordResetEmail = workflow(
"Dropbox Password Reset",
async ({ step, payload }) => {
await step.email(
"send-email",
async (controls) => {
return {
subject: controls.emailSubject,
body: renderPasswordResetEmail(controls, payload),
};
},
{
controlSchema: zodControlSchema
}
);
},
{
payloadSchema: zodPayloadSchema
}
);
Was this page helpful?
On this page