Very basic auth app api to grasp sending mails and the reset password flow
localhost:4000/v1/auth/register
Content-Type | Value |
---|---|
Content-Type | application/json |
{
"email": "[email protected]",
"userName": "Tomioka",
"password": "codegiyu670",
"phone": "08123456789"
}
โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ
localhost:4000/v1/auth/login
Content-Type | Value |
---|---|
Content-Type | application/json |
{
"userName": "Tomioka",
"password": "codegiyu670"
}
โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ
localhost:4000/v1/auth/forgot-password
Content-Type | Value |
---|---|
Content-Type | application/json |
{
"email": "[email protected]"
}
โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ
localhost:4000/v1/auth/reset-password
Content-Type | Value |
---|---|
Content-Type | application/json |
{
"cipherText": "U2FsdGVkX1+i2UMpyoORVHYj54brYJ5FTw1JsfjjHyhdRODuUOFoy7r5pBmHiot3",
"otp": "725007",
"newPassword": "Password123"
}
โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ