Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Add me endpoint #81

Open
wants to merge 2 commits into
base: sign-in-page
Choose a base branch
from
Open

Feat: Add me endpoint #81

wants to merge 2 commits into from

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