Variable createResetPasswordToken
createResetPasswordToken: (
tenantId: string,
userId: string,
email: string,
userContext?: Record<string, any>,
) => Promise<
{ status: "OK"; token: string }
| { status: "UNKNOWN_USER_ID_ERROR" },
> = Wrapper.createResetPasswordToken
Type declaration
- (
tenantId: string,
userId: string,
email: string,
userContext?: Record<string, any>,
): Promise<
{ status: "OK"; token: string }
| { status: "UNKNOWN_USER_ID_ERROR" },
> Parameters
- tenantId: string
- userId: string
- email: string
Optional
userContext: Record<string, any>
Returns Promise<{ status: "OK"; token: string } | { status: "UNKNOWN_USER_ID_ERROR" }>
We do not make email optional here cause we want to allow passing in primaryUserId. If we make email optional, and if the user provides a primaryUserId, then it may result in two problems:
And we want to allow primaryUserId being passed in.