User: GET

Retrieves a user's unique identification token, which can be used to access routes requiring authentication.

Request

To sign in to an existing user account, make a GET request to:

/api/signin

using basic access authentication.

Response

A JSON Web Token.

body: { 
  _id: '59960d1524d4090c1d5c9982',
  name: 'exampleuser',
  password: '$2a$10$BAA9WIoPCH8Ox4M5hoK0KemxPXM6FwGYm/cXYIZEZFw69Xrz.CBNm',
  email: 'exampleuser@test.com',
}

results matching ""

    No results matching ""