This recipe explains how to use Snag social integration API to let your users connect their social accounts to their Snag profile.
{authType}
is one of: twitter
, discord
, telegram
, epic
, or steam
or google
.
Parameter | Type | Required | Description |
---|---|---|---|
userId | UUID | Yes | The ID of the user received from the user creation endpoint |
websiteId | UUID | No | The ID of the website (if applicable) |
redirect | String | Yes | The URL where the user will be redirected after completing authentication |
responseType | String | No | The type of response to return (redirect or json ). Defaults to redirect |
/api/{authType}/auth
endpoint with the required parametersredirect
parametererror = 'MAXIMUM_ACCOUNT_LINKED'
- Indicates that the account is already linked to another useraccountLinkData
- A JWT verification token that contains the necessary information to process the account transfer/api/users/verify
with the following payload:error = 'YOUTUBE_CHANNEL_NOT_FOUND'
. This typically happens when:
url
property contains the authentication URL that you should redirect your user to.
https://snag-render.com/api/twitter/auth/callback
https://snag-render.com/api/discord/auth/callback
https://snag-render.com/api/epic/auth/callback
https://snag-render.com/api/steam/auth/callback
https://snag-render.com/api/google/auth/callback