-
Enpoint :
POST
/auth/register -
Body :
{ email: "[email protected]", password: "123123", name: "User Test" }
-
Status :
201
{ token: { accessToken: "kshdjhisah829r745dsfhsjkdhfdsf", refreshToken: "kshdjhisah829r745dsfhsjk123dsf" } user: { email: "[email protected]", name: "User Test" } }
-
Enpoint :
POST
/auth/login -
Body :
{ email: "[email protected]", password: "123123" }
-
Status :
200
{ token: { accessToken: "kshdjhisah829r745dsfhsjkdhfdsf", refreshToken: "kshdjhisah829r745dsfhsjk123dsf" } user: { email: "[email protected]", name: "User Test" } }
-
Status :
401
{ message: "unauthorized" }
- Enpoint :
GET
/auth/user - Headers :
{ Authorization: "Bearer kshdjhisah829r745dsfhsjkdhfdsf" }
-
Status :
200
{ email: "[email protected]", name: "User Test" }
-
Status :
401
{ message: "unauthorized" }