security

Link a user account with the provider's account using an id token

Changed on

Link the authenticated user's account with an external OAuth provider account using an ID token. Requires elevated permissions.

post/link/idtoken

Request

  • Base URL
    https://{subdomain}.auth.{region}.nhost.run/v1
  • URL
    https://{subdomain}.auth.{region}.nhost.run/v1/link/idtoken
  • Auth
    HTTP bearer

Request body

provider'apple' | 'google' required
idTokenstring required

Apple ID token

noncestring

Nonce used during sign in process

Response

Identity linked successfully

'OK' required

Changes

    • warning

      added the new otp-too-many-attempts enum value to the response property for the response status

    • warning

      added the new user-already-exists enum value to the response property for the response status

    • info

      removed the email-already-in-use enum value from the response property for the response status