Skip to content

Commit

Permalink
fix: correct the method of linking social identities
Browse files Browse the repository at this point in the history
  • Loading branch information
wangsijie committed Jan 21, 2025
1 parent eb6cbcf commit c598361
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/end-user-flows/account-settings/by-account-api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -265,10 +265,10 @@ curl -X POST https://[tenant-id].logto.app/api/verifications/social/verify \

The `connectorData` is the data returned by the social connector after the user authorizes the application, you need to parse and get the query parameters from the `redirectUri` in your callback page, and wrap them as a JSON as the value of the `connectorData` field.

Finally, you can use the `PATCH /api/my-account/identities` endpoint to link the social connection.
Finally, you can use the `POST /api/my-account/identities` endpoint to link the social connection.

```bash
curl -X PATCH https://[tenant-id].logto.app/api/my-account/identities \
curl -X POST https://[tenant-id].logto.app/api/my-account/identities \
-H 'authorization: Bearer <access_token>' \
-H 'logto-verification-id: <verification_record_id>' \
-H 'content-type: application/json' \
Expand Down

0 comments on commit c598361

Please sign in to comment.