Complete a social session
Non-custodial accounts are available in sandbox only. Production non-custodial accounts are on the roadmap.
Verifies the identity provider’s ID token against a prepared login and links the signed-in identity to the end customer named by clientEntityId. Returns a single-use registrationHandle for POST /v1/accounts/auth/deviceKeyRegistration.
Before you go live, register your application’s Google client IDs in Circle Hub (Digital Asset Accounts settings > Social login). In staging and production, the ID token’s audience must be one of them.
This call doesn’t create an account or a wallet, and doesn’t need a device signature. The Digital Asset Accounts SDK builds the request on the device. Your backend relay adds your API key and forwards it.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Universally unique identifier (UUID v4) idempotency key. This key is utilized to ensure exactly-once execution of mutating requests.
"ba943ff1-ca16-49b2-ba55-1057e70ca5c7"
The loginRequestId returned by POST /v1/accounts/auth/loginRequests.
"3f9a6c1e-2b7d-4e8a-9c0f-5d1e2a3b4c5d"
The ID token your application received from the identity provider. It must carry the oidcNonce returned when the login was prepared.
8192"eyJhbGciOiJSUzI1NiIsImtpZCI6IjEifQ.eyJpc3MiOiJodHRwczovL2FjY291bnRzLmdvb2dsZS5jb20ifQ.c2lnbmF0dXJl"
The end customer the signed-in end user acts for. Use the clientEntityId returned when you created the end customer with Create a partner client (POST /v1/partner/clients). It must belong to your entity.
Circle permanently links the signed-in identity to this clientEntityId, and you can't change the link later. Read the value from your own backend session for the signed-in user. Never take it from user input.
"a3f1b2c4-d5e6-7890-abcd-ef1234567890"
Response
Successfully verified the social login.
A verified social session, ready for device registration.