Skip to content

pokegame/identity-service

Repository files navigation

Pokegame - Identity service

This provides endpoints for signup and login.

Installation

Install composer dependencies

$ composer install

Create database tables

$ ./bin/console doctrine:schema:update --force

Generate the SSH keys

$ make generate-jwt-keys

Service API

POST /signup

With body:

{
    "email": "[email protected]",
    "password": "watch"
}

On success will respond with a 201 status code:

{
    "success": true,
    "message": "User created."
}

POST /signin

With body:

{
    "email": "[email protected]",
    "password": "watch"
}

If the credentials are correct, it will respond with an authentication token:

{
    "token": "eyJhbGciOiJ..."
}

GET /public-key

It will responds with the server's public key. You can use this to verify signed JWT:

{
    "publicKey": "..."
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published