Signin user

مدیریت کاربران از پیش ساخته شده شما

مطالب پیش رو برای زبان فارسی تهیه نشده است.

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": {
    "item": {
      "token": "f2aff8b8220d75023ee37231f49c3d110632dc0af2e05c80b127b885b1683356",
      "user": {
        "ID": 11,
        "CreatedAt": "2021-10-10T12:26:20.882496841+02:00",
        "UpdatedAt": "2021-10-10T12:26:20.882496841+02:00",
        "DeletedAt": null,
        "firstName": "",
        "lastName": "",
        "uniqueId": "cc03845a-7845-4941-8775-95dd78f1f569",
        "Passports": null
      },
      "workspaces": [
        {
          "ID": 15,
          "CreatedAt": "2021-10-10T12:26:20.893920004+02:00",
          "UpdatedAt": "2021-10-10T12:26:20.893920004+02:00",
          "DeletedAt": null,
          "WorkspaceID": 12,
          "Workspace": {
            "ID": 12,
            "CreatedAt": "2021-10-10T12:26:20.888939599+02:00",
            "UpdatedAt": "2021-10-10T12:26:20.888939599+02:00",
            "DeletedAt": null,
            "name": "cypress_user_20_22391@test.com workspace",
            "description": "",
            "uniqueId": "0afb6a9e-2296-4e84-9a5d-3676abc2c907"
          },
          "RoleID": 14,
          "Role": {
            "ID": 14,
            "CreatedAt": "2021-10-10T12:26:20.891032157+02:00",
            "UpdatedAt": "2021-10-10T12:26:20.891032157+02:00",
            "DeletedAt": null,
            "uniqueId": "56665504-0dd1-48fd-979a-6df1aa17ebbc",
            "name": "Owner",
            "Capability": null,
            "WorkspaceID": 12,
            "Workspace": {
              "ID": 0,
              "CreatedAt": "0001-01-01T00:00:00Z",
              "UpdatedAt": "0001-01-01T00:00:00Z",
              "DeletedAt": null,
              "name": "",
              "description": "",
              "uniqueId": ""
            }
          },
          "UserID": 11,
          "User": {
            "ID": 11,
            "CreatedAt": "2021-10-10T12:26:20.882496841+02:00",
            "UpdatedAt": "2021-10-10T12:26:20.882496841+02:00",
            "DeletedAt": null,
            "firstName": "",
            "lastName": "",
            "uniqueId": "cc03845a-7845-4941-8775-95dd78f1f569",
            "Passports": null
          },
          "uniqueId": "0afb6a9e-2296-4e84-9a5d-3676abc2c907"
        }
      ]
    }
  }
}