Full Stack Bookstore by Abdelfattah Ragab

Full Stack Bookstore by Abdelfattah Ragab

Author:Abdelfattah Ragab
Language: eng
Format: epub
Publisher: Abdelfattah Ragab
Published: 2024-03-26T00:00:00+00:00


7.4 Auth Service

The auth service will have the following methods

● validateUser

To validate the email and password are correct and if he should login successfully

● login

If the user is valid he should login successfully and return the user data in the response

● refreshToken

To issue a new access token when the old one expires

● requestResetPassword

Begin the process of resetting the password by issuing a password token and saving it in the database. This token is compared with the token that was transferred when the new password was saved



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.