مدیریت کاربران از پیش ساخته شده شما
URL http://localhost:4500/auth/user/signup Method POST only Body
curl -X POST --data '{"email":"xyz","password":"xyz"}' http://localhost:4500/auth/user/signin
Signin is also quite similar to the signup route. It takes email
and password
fields,
and it will return workspaces
, token
and user
objects.
When user signs up, we automatically sign them in, you do not need to call this action again once after signup.
{
"data": {
"token": "3270509bf01ad5944a897e343d6549f2cf2171ac857a031c9d493e9f626e691c",
"exchangeKey": "37e1077d",
"userRoleWorkspaces": [
{
"workspace": {
"name": "cypress_user_48_96338@test.com workspace",
"uniqueId": "564fb1ac"
},
"workspaceId": "564fb1ac",
"role": {
"uniqueId": "410059d1",
"name": "Administrator",
"workspaceId": "564fb1ac"
},
"roleId": "410059d1",
"user": {
"uniqueId": "45b0c408"
},
"userId": "45b0c408",
"uniqueId": "db1beb13"
}
],
"user": {
"uniqueId": "45b0c408"
}
}
}