Retrieve the social provider token set for the current user.
This API retrieves the token set record associated with the current user's social identity from the Logto Secret Vault. The operation is only available if the corresponding social connector has token set storage enabled. If a token set record exists for the user's social identity, it will be returned.
GET
/api/users/{userId}/identities/{target}/secret
curl \
--request GET 'https://[tenant_id].logto.app/api/users/{userId}/identities/{target}/secret' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"tenantId": "string",
"id": "string",
"userId": "string",
"type": "string",
"metadata": {
"scope": "string",
"expiresAt": 42.0,
"tokenType": "string"
},
"createdAt": 42.0,
"updatedAt": 42.0,
"connectorId": "string",
"identityId": "string",
"target": "string"
}