AuthLogin

Login

Validate a signalId/signalToken pair and return a JWT that can be used to authorize other requests.

curl -X POST "https://api.nexus.usehardal.com/auth/login" \
  -H "Content-Type: application/json" \
  -d '{
  "signalId": "example_string",
  "signalToken": "example_string"
}'
{
  "token": "example_string",
  "signalId": "example_string",
  "ttl": 3.14,
  "issuedAt": 3.14,
  "expiresAt": 3.14,
  "expiresIn": 3.14
}
POST
/auth/login
POST
Base URLstring

Target server for requests. Edit to use your own host.

Content-Typestring
Required

The media type of the request body

Options: application/json, multipart/form-data, text/plain
signalIdstring
Required

Signal identifier that will own the session

Min length: 1
signalTokenstring
Required

API token issued for the signal

Min length: 1
Request Preview
Response

Response will appear here after sending the request

Body

signalIdstring
Required

Signal identifier that will own the session

signalTokenstring
Required

API token issued for the signal

Responses

tokenstring
Required

Signed JWT token

signalIdstring
Required

Signal identifier embedded in the token

ttlnumber
Required

Token time-to-live in seconds

issuedAtnumber
Required

Issued-at timestamp (seconds since Unix epoch)

expiresAtnumber
Required

Expiration timestamp (seconds since Unix epoch)

expiresInnumber
Required

Remaining seconds until expiration