POST
/
sign-in
curl --request POST \
  --url http://dolphinflashcards.com/api/sign-in \
  --header 'Content-Type: application/json' \
  --data '{
  "userID": "user1",
  "rawAccessToken": "test",
  "accessToken": "duh32*£dh",
  "idToken": "eu26bdj7s..."
}'
{
  "success": true,
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}

Body

application/json
userID
string
required

A unique identifier to be assigned to the new user.

Example:

"user1"

rawAccessToken
string
required

The raw access token to use to authenticate the Alpha

Example:

"test"

accessToken
string
required

The hashed version of the rawAccessToken

Example:

"duh32*£dh"

idToken
string
required

The ID Token provided by firebase authentication

Example:

"eu26bdj7s..."

Response

200
application/json
Sign-in successful, returns a JWT token
success
boolean
Example:

true

token
string

The generated JWT token for the user

Example:

"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."