GET /auth/forgot-password/{token}
Validate password reset token
Checks if a password reset token is valid and not expired
Required Parameters
token
path string Password reset token received in email
Try it out
Loading...
Output:
Responses
Description
Token is valid
{ "valid": true, "email": "string"}Description
Bad request - invalid token format
{ "error": "string", "status": 0, "message": "string"}Description
Not found - token is invalid or expired
{ "error": "string", "status": 0, "message": "string"}Description
Internal server error
{ "error": "string", "status": 0, "message": "string"}References
#/components/schemas/Error
type: objectproperties: error: type: string description: Error message status: type: integer description: HTTP status code message: type: string description: Detailed error messagedescription: Error response objectrequired: - error|export interface Error { /** Error message */ error: string; /** HTTP status code */ status?: number; /** Detailed error message */ message?: string;}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