POST
/
link
/
idtoken
Link a user account with the provider's account using an id token
curl --request POST \
  --url https://{subdomain}.auth.{region}.nhost.run/v1/link/idtoken \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "provider": "apple",
  "idToken": "<string>",
  "nonce": "<string>"
}'
"OK"

Authorizations

Authorization
string
header
required

Bearer authentication that requires elevated permissions. Used for sensitive operations that may require additional security measures such as recent authentication. For details see https://docs.nhost.io/guides/auth/elevated-permissions

Body

application/json

ID token and provider information for account linking

provider
enum<string>
required
Available options:
apple,
google
idToken
string
required

Apple ID token

nonce
string

Nonce used during sign in process

Response

Identity linked successfully

The response is of type enum<string>.

Available options:
OK