-
Notifications
You must be signed in to change notification settings - Fork 4
Token Genaration API calls UUID
This is a UUID API used to generate
This API call will be called internally to generate a random token that has properties like expiry date, used etc. This token is sent to to the user mail in the form of String attached to URL in GET request. When the user clicks on the URL within 24 hours(default)expiry time and sets the password. The Database is updated with new details based on the generated token value Here the URL can be clicked only once.
users/reset/:token
GET
| Key | Description | Type | Required |
|---|---|---|---|
| token | Random Value used to | String | Yes |
Status codes: 200,400,501
Example:
code: 200 OK
Table Name: users
| Key | Description | Type | Required |
|---|---|---|---|
| name | Password | Encryped Password | Yes |
| Email ID of the user | String | Yes |
users/reset/:token
POST
| Key | Description | Type | Required |
|---|---|---|---|
| token | Random Value used to keep track of validity | String | Yes |
| Password | New Password | String | Yes |
This API is used to update the password in database for users table.It updates based on the random unique string which is generated and changes to database in encrtyted form using the decrytps API
Status codes: 200,400,501
Example:
code: 200 OK
Table Name: users
| Key | Description | Type | Required |
|---|---|---|---|
| name | Password | Encryped Password | Yes |
| Email ID of the user | String | Yes |
UDDI V4 is a module for Node.js applications to generate an unique random ID and set properties to it
A universal unique identifier (UUID) is a standard of generating identifiers, standardized by the Open Software Foundation (OSF).
The intent of UUIDs is to be able to generate unique identifiers in a distributed system without central coordination point. Version 4 UUID is meant for generating UUIDs from truly-random or pseudo-random numbers.
More information can be obtained from https://www.npmjs.com/package/node-uuid-v4