You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,7 @@ This is a modern RESTful API built with **Node.js** and **Express**, designed to
26
26
-**Authentication & Authorization**:
27
27
-**User Authentication**: Secure API access using **JSON Web Tokens (JWT)**.
28
28
-**Role-based Access Control (RBAC)**: Control access to resources based on user roles (e.g., admin, user).
29
+
-**Password Reset**: Secure password reset functionality with time-limited tokens and email verification using **SendGrid**.
29
30
30
31
-**Swagger API Documentation**:
31
32
-**Swagger** integrated for real-time API documentation and testing directly in the browser. Access the documentation at: [http://localhost:3000/api-docs](http://localhost:3000/api-docs).
@@ -129,6 +130,8 @@ Once the server is running, you can access the auto-generated API documentation
129
130
-**PUT /users/:id** - Update an existing user by ID (requires JSON body).
130
131
-**DELETE /users/:id** - Delete a user by ID.
131
132
-**POST /login** - Authenticate a user and return a JWT (requires JSON body with email and password).
133
+
-**POST /forgot-password** - Request a password reset link (requires email in JSON body).
134
+
-**POST /reset-password/:token** - Reset password using the token received via email.
132
135
133
136
[<imgsrc="https://run.pstmn.io/button.svg"alt="Run In Postman"style="width: 128px; height: 32px;">](https://app.getpostman.com/run-collection/31522917-54350f46-dd5e-4a62-9dc2-4346a7879692?action=collection%2Ffork&source=rip_markdown&collection-url=entityId%3D31522917-54350f46-dd5e-4a62-9dc2-4346a7879692%26entityType%3Dcollection%26workspaceId%3D212c8589-8dd4-4f19-9a53-e77403c6c7d9)
text: `You requested a password reset. Please go to this link to reset your password: ${resetUrl}\n\nThis link will expire in 1 hour.\n\nIf you did not request this, please ignore this email.`,
107
+
html: `
108
+
<p>You requested a password reset.</p>
109
+
<p>Please click the link below to reset your password:</p>
110
+
<a href="${resetUrl}">Reset Password</a>
111
+
<p>This link will expire in 1 hour.</p>
112
+
<p>If you did not request this, please ignore this email.</p>
0 commit comments