Closed pedromig closed 2 years ago
if successful, response should include a set-cookie header with cookie named "jwt"
the jwt should be encoded in base64 and include user information such as the role
helpful code: Buffer.from(JSON.stringify({ role: 'admin' })).toString('base64');
status code if successful: 200 status code if unsuccessful: 401
User Login
About
Design a REST API endpoint that allows the user to access the platform, provided that he has the correct information required for authentication.
Tasks
Utils
OpenAPI Spec - SwaggerUI