curl --request POST \
--url http://dolphinflashcards.com/api/create-account \
--header 'Content-Type: application/json' \
--data '{
"userID": "user1",
"displayName": "sampleName",
"rawAccessToken": "test",
"accessToken": "duh32*£dh",
"idToken": "eu26bdj7s..."
}'
{
"success": true,
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}
Create a new user account.
curl --request POST \
--url http://dolphinflashcards.com/api/create-account \
--header 'Content-Type: application/json' \
--data '{
"userID": "user1",
"displayName": "sampleName",
"rawAccessToken": "test",
"accessToken": "duh32*£dh",
"idToken": "eu26bdj7s..."
}'
{
"success": true,
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}
Sign-in successful, returns a JWT token
The response is of type object
.