Skip to main content
POST
Sign in with a NEAR account

Body

application/json

Request body for NEAR authentication (NEP-413).

payload
object
required

The payload that was signed

signed_message
object
required

The signed message from the wallet

Response

Signed in.

The tokens of a completed sign-in and the account they belong to.

access_token
string
required

Access token, sent as Authorization: Bearer <token>.

refresh_token
string
required

Refresh token beginning with rt_. Exchange it for a new access token before the access token expires.

refresh_token_expiration
string<date-time>
required

When the refresh token expires.

user
object
required

The signed-in account, as a sign-in answers it.