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

NameTypeDescription

password

string

password1324

email

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='

If you didn't verify your email, the login will fail

Verify email:

In your inbox you can find mail to verify the email.

the mail come from yourCompanyEmail@gmail.com you can edit this email from config file, and you can custom the email from src/email-templates/account/verify-email.pug

Last updated