Test Login
In this step we are going to login your first user
You can You can login from dashboard https://feathersjs-mongoose-casl-admin.herokuapp.com/ swagger http://localhost:3030/docs postman feathers-mongoose-casl postman documentation
POST
http://localhost:3030/authentication \
Request Body
Name
Type
Description
password
string
password1324
string
myEmail@gmail.com
strategy
string
local
{
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6ImFjY2VzcyJ9.eyJ1c2VySWQiOiI1YzVhY2MzNzZmMzJhZTNiMDhlNTBhN2EiLCJpYXQiOjE1NDk0NTQ4MzcsImV4cCI6MTU0OTU0MTIzNywiYXVkIjoiaHR0cHM6Ly95b3VyZG9tYWluLmNvbSIsImlzcyI6ImZlYXRoZXJzIiwic3ViIjoiYW5vbnltb3VzIiwianRpIjoiZTI4NTcyNDUtZWMzZi00YzhlLWFiZmUtNzhiMzJhYjlhOGRmIn0.LfSttwrbpjD15bmf9xFtBkid2FcpRJM2YFO6yvosuXI",
"user": {
"_id": "5c5acc376f32ae3b08e50a7a",
"email": "MyEmail@gmail.com",
"updatedAt": "2019-02-06T12:00:18.441Z",
"createdAt": "2019-02-06T11:59:51.471Z",
"__v": 0
}
}
Postman snippet
curl -X POST \
http://localhost:3030/authentication \
-H 'Content-Type: application/x-www-form-urlencoded' \
-H 'Postman-Token: eccaf293-a50e-48ec-a53e-aebc241defba' \
-H 'cache-control: no-cache' \
-d 'email=doron.nahum%2B11%40gmail.com&password=password&strategy=local&undefined='
Last updated
Was this helpful?