717974857 by Unknown

717974857 by Unknown

Author:Unknown
Language: eng
Format: epub


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

● resetPassword

Save the new password

import {

BadRequestException,

HttpStatus,

Injectable,

NotFoundException,



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.