Prepare add auth method
Prepares a Turnkey activity for adding a new auth method (passkey, OAuth, or email). When a new method must be added, returns status: "intent_required" and an intent the wallet must stamp. When the same OAuth/email method already exists, returns status: "already_exists" with the existing method — no commit is needed.
Authorizations
Cognito JWT token for regular user authentication
Body
Prepare request for adding an auth method. Discriminated by kind. Email requires a prior call to the email-start flow to obtain otpId.
- Option 1
- Option 2
- Option 3
Prepare request for adding an auth method. Discriminated by kind. Email requires a prior call to the email-start flow to obtain otpId.
Response
Prepare response. Branch on status: intent_required requires stamping + commit; already_exists returns the existing method directly.