Passwordless and token based authentication and authorization in Nodejs
$30-250 USD
Paguhet në dorëzim
Asking for a efficient and simplified authentication and authorization library in express Nodejs. The module must use OTP for authentication and JWT for authorization to be used by a client API. The sequence of use is as follow:
1) Via HTTPS POST express API, user send email to ask for OTP.
2) An email with a 6 digit OTP valid for the current day is sent to the email provided.
3) Via HTTPS POST user send email and the OTP to be authenticated
4) If no valid ,return HTTP no authorized status with an error message. If valid, a JWT is generated and returned to the user in the response.
5) User can call other API that requires authorization with the JWT
Conditions:
- JWT can be valid for 1 month. Additional, any authorized request should validate with a callback provided that returns true or false even if JWT is valid. A false of that callback inmediately invalidates the JWT. JWT subject field must contain email.
- If DB if needed for storing the OTP , use Mongo. Recommended to use some algorithm that doesnt require storing, like using the current date for seed.
- The "ask otp" could return "no authorized" because email doesnt exist. But the logic of checking if email existe will be provided in a callback that returns true or false.
- if JWT is expired, return new JWT in a response field when doing any request.
- When using Authenticate email and OTP, if successful, OTP is invalidated and a new JWT is generated
- API function list:
Ask OTP : Return OTP or no authorized send to the email
Authenticate email and OTP: return new JWT or no authorized.
Logout: Invalidate a JWT or no authorized.
- Keep module dependencies to a minimum.
- Well documented code.
Provided a sample API call that requires to be authorized with a valid JWT
ID Projekti: #18313631
Rreth projektit
13 profesionistë freelancer dërguan një ofertë mesatare prej $210 për këtë punë
Hello. I have read your project descriptions. I have many experience in node, express.js. and passport using jwt or anothers. lets discuss more details via chat. Thank you.
Hello, I see that you are looking for an experienced developer. Due to my education and work experience in the sphere of web development, I have the ability to create nodejs application. With my previous experienc Më shumë
Hi, I am experienced nodejs but also mongo. I developed a program which synchronize mongodb with mysql db. I also developed a web application using nodejs express. I can satisfy your need. Thank you.
I have already done similar kind of work. I will be doing this project within 3 days with the requirements. Relevant Skills and Experience Created some apps with same requirements.
Hi. I already finished your project. It's fully functional right now. I've added a pdf file to my portfolio as a proof. If we deal, i will write a readme file as a documentation and if you wish, i can write unit tests Më shumë