Skip to content

Conversation

FabianGurevich
Copy link

Ticket/Card

Description of the change

Add me endpoint.

Screenshot/Execution

Grabacion_00342.mp4

const id = req.cookies["cookie-id"];
if (!id) {
return res
.status(401)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't the error code be a 400?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in ac529a8

name: string;
}

interface UserInfo {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is the difference?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The idea is to separate the types that comes from the backend to the type after deserialize the information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants