Identity serverAPI reference
Username
POST
bearerAuthheader
AuthorizationBearer <token>Bearer token authentication
application/json- body
username*stringThe username of the user
password*stringThe password of the user
rememberMe?booleanRemember the user session
callbackURL?stringURL to redirect to after sign in (also used as the redirect target for email verification when required)
Success
application/json- response
redirect*booleanWhether the client should follow the Location header. True when callbackURL was provided.
token*stringSession token for the authenticated session
url?stringThe callbackURL echoed back so the client can redirect.
user*curl -X POST 'https://dev.auth.graphxserver.io/api/auth/sign-in/username' \ -H 'Content-Type: application/json' \ -d '{ "username": "string", "password": "string"}'{ "redirect": true, "token": "string", "url": "string", "user": { "id": "string", "name": "string", "email": "string", "emailVerified": false, "image": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "username": "string", "displayUsername": "string", "twoFactorEnabled": false, "role": "string", "banned": false, "banReason": "string", "banExpires": "2019-08-24T14:15:22Z", "lastLoginMethod": "string", "phoneNumber": "string", "metadata": null, "emailOtpEnabled": false }}POST
bearerAuthheader
AuthorizationBearer <token>Bearer token authentication
application/json- body
username*stringThe username to check
Bad Request. Usually due to missing parameters, or invalid parameters.
application/json- response
message*stringcurl -X POST 'https://dev.auth.graphxserver.io/api/auth/is-username-available' \ -H 'Content-Type: application/json' \ -d '{ "username": "string"}'{ "message": "string"}