Auth

If you would like to get familiar with the authentication flow, please click here.

Retrieves nonce for authentication

GET https://gateway-relay.herokuapp.com/auth/{wallet_address}/nonce

Path Parameters

Name
Type
Description

wallet_address*

string

address of the user's UP

Example 200 Response
{
    nonce: 1955258057868615
}

Validate signature to authenticate user and provide jwt token

POST https://gateway-relay.herokuapp.com/auth/{wallet_address}/signature

Path Parameters

Name
Type
Description

wallet_address*

string

address of the user's UP

Example 200 Response
{
    success: true,
    token: 'Bearer eyJh...LoYI', //full jwt token will go here
    expiresIn: '6h'
}

Last updated