POST
/
magic_links
/
authenticate
curl --request POST \
  --url https://api.furo.one/magic_links/authenticate \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "requestId": "<string>",
  "code": "<string>"
}'
{
  "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiJiNjBlMGFjNi01M2JiLTRkZjktYTNjOS01MzQxZTczM2UyYjEiLCJ1ZW0iOiJhYmNkQHRlc3QuY29tIiwicGlkIjoiNWEyOTgzNjE3MWFjNTY1NWM5MmY0ZWZmZTY0ZDE3YWIiLCJpYXQiOjE2ODExNzgxMTEsImV4cCI6MTY4MTE4MTcxMX0.JyF7WO1Kna6aBBgCQ8YoJ8SIDloQEu0PnMyAM8cwYmM",
  "refresh_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJiNjBlMGFjNi01M2JiLTRkZjktYTNjOS01MzQxZTczM2UyYjEiLCJpYXQiOjE2ODExNzgxMTEsImV4cCI6MTY4MTc4MjkxMX0.I-zxvlmegw_uGyuBrecyDmpgbikIOa3dD6CPWLWiZz8",
  "uid": "b60e0ac6-53bb-4df9-a3c9-5341e733e2b1",
  "user": {
    "uid": "b60e0ac6-53bb-4df9-a3c9-5341e733e2b1",
    "project_id": "5a29836171ac5655c92f4effe64d17ab",
    "email": "abcd@test.com",
    "profile_url": "",
    "preferred_username": "",
    "thumbnail_url": "",
    "name": {
      "given_name": "",
      "family_name": "",
      "formatted": ""
    },
    "display_name": "",
    "about_me": "",
    "current_location": "",
    "sign_in_methods": {
      "idpw": {
        "enabled": true
      }
    },
    "verified": {
      "email": false,
      "sms": false
    },
    "address": "0x34Be5Aef96Dd94a26B52238F8f4AE1b5d28cf4f3",
    "wallet": {
      "address": "0x34Be5Aef96Dd94a26B52238F8f4AE1b5d28cf4f3",
      "type": "furo"
    },
    "created_at": "2023-04-11T01:50:13.764Z",
    "modified_at": "2023-04-11T01:55:11.485Z",
    "photos": [],
    "urls": [],
    "last_sign_in_at": "2023-04-11T01:55:11.485Z"
  },
  "user_created": false,
  "code": "7983f6be1216fa6bfd2f0a16f94de19dcde6d232"
}

Body

requestId
string
required

Request ID of the magic link request.

code
string
required

OTP code sent to the user.

Response

In response, property access_token and refresh_token is deprecated. Use code property instead.

Was this page helpful?