🙇Authentication

User signature is required to fetch data

Arrange Data

First, you need to arrange data which will be used to generate message

{
    "owner": "string" // can be address or DID
}

Generate a message

Generate Access Tokens

Sign the above message using the appropriate address and arrange data in below format

{
    "owner": "string",
    "signature": "string",
    "timestamp": "number"
}

signature is the obtained by signing the above generated message and timestamp is also given in the response of this

timestamp can't be older than 5 minutes

Authenticate

To authenticate, just include the received accessToken in headers as authorization in format bearer ${accessToken}

Last updated