Skip to content

POST   /auth/forgot-password/{token}

Reset password using token

Sets a new password using a valid password reset token

Required Parameters

token   path string

Password reset token received in email

Request Body

{
"pw1": "string",
"pw2": "string"
}

Try it out

Loading...

Output:

Responses

Description

Password reset successful

{
"message": "Password has been reset successfully"
}

References

#/components/schemas/Error

type: object
properties:
error:
type: string
description: Error message
status:
type: integer
description: HTTP status code
message:
type: string
description: Detailed error message
description: Error response object
required:
- error

Route Source Code

Check out the source code for this route entrypoint here: /auth/forgot-password/[token]/route.ts

Or the swagger.yaml spec this documentation was generated from: /auth/forgot-password/[token]/swagger.yaml