DCN Auth Service (0.1.0)

Download OpenAPI specification:Download

DCN Auth Service

auth

Operations related to authentication.

Get nonce

Get nonce for an address (for signature-based login)

path Parameters
address
required
string (Address) ^0x[a-fA-F0-9]{40}$

Address to get nonce for

Responses

Response samples

Content type
application/json
{
  • "address": "string",
  • "nonce": "string"
}

CORS preflight

CORS preflight

Responses

Authenticate

Authenticate (sign-in) using address + signature over nonce

Request Body schema: application/json
address
required
string (Address) ^0x[a-fA-F0-9]{40}$

Ethereum-style address (0x + 40 hex chars).

signature
required
string

Wallet signature of the server-provided nonce

Responses

Request samples

Content type
application/json
{
  • "address": "string",
  • "signature": "string"
}

Response samples

Content type
application/json
{
  • "access_token": "string",
  • "expires_in": 0
}