Skip to main content
POST
Prepare a social login

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
idempotencyKey
string<uuid>
required

Universally unique identifier (UUID v4) idempotency key. This key is utilized to ensure exactly-once execution of mutating requests.

Example:

"ba943ff1-ca16-49b2-ba55-1057e70ca5c7"

provider
enum<string>
required

Identity provider the end user signs in with. Only GOOGLE is supported.

Available options:
GOOGLE
Example:

"GOOGLE"

registrationFlowPublicKey
string
required

Public key of a temporary P-256 key that the Digital Asset Accounts SDK generates on the device for this login. The SDK uses the matching private key to sign the X-Registration-Flow-Authorization header on device registration.

Required string length: 122
Example:

"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE6datWbQ0kQFkT9lH_qz1su-2nvHaOIuCfQnh3w_tNntxJQOob8_kRkV7_wuoVz7dPVXqDaSXLd2cugsh7LncOA"

registrationCodeChallenge
string
required

PKCE S256 code challenge: the unpadded base64url SHA-256 digest of a code verifier that the SDK keeps on the device. The SDK sends the verifier as registrationCodeVerifier on device registration.

Pattern: ^[A-Za-z0-9_-]{43}$
Example:

"XQIzp2Sp4JusoBuOrVNfjyRaLeIniaVB-vJa2NV4ttQ"

Response

Successfully prepared a social login.

data
object
required

A prepared social login.