Skip to Content
Features

Login

OAuth

To log in on HxDR, please follow the AWS Cognito OAuth guide . As a developer you will receive the required data from the HxDR team to perform a login.

JWT

Once logged in, the JWT needs to be retrieved as described here .

Using the example from above, a response would look like this:

HTTP/1.1 200 OK Content-Type: application/json { "access_token":"eyJz9sdfsdfsdfsd", "refresh_token":"dn43ud8uj32nk2je", "id_token":"dmcxd329ujdmkemkd349r", "token_type":"Bearer", "expires_in":3600 }

Important are the token_type and the access_token. They need to be combined, as shown below, to access the platform:

HTTP Request Header:

{ "authorization": "Bearer [ACCESS_TOKEN]" }
{ "authorization": "Bearer eyJz9sdfsdfsdfsd" }

To sucessful execute any GraphQL  query and/or mutation, the authorization key needs to be present in every request.

JS-SDK reference

  • Auth

    Identity authentication

  • Account

    Account Services

Last updated on