This provides endpoints for signup and login.
$ composer install
$ ./bin/console doctrine:schema:update --force
$ make generate-jwt-keys
With body:
{
"email": "[email protected]",
"password": "watch"
}
On success will respond with a 201
status code:
{
"success": true,
"message": "User created."
}
With body:
{
"email": "[email protected]",
"password": "watch"
}
If the credentials are correct, it will respond with an authentication token:
{
"token": "eyJhbGciOiJ..."
}
It will responds with the server's public key. You can use this to verify signed JWT:
{
"publicKey": "..."
}