This recipe explains how to use Snag social integration API to let your users connect their social accounts to their Snag profile.
This guide explains how to use Snag’s social integration API to let your users connect their social accounts to their Snag profile. After creating a user in Snag (as explained in Managing User Accounts), you can use the social authentication endpoints to connect various social platforms to that user’s profile.
Snag supports connecting the following social platforms:
Where {authType}
is one of: twitter
, discord
, telegram
, epic
, or steam
.
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
parameterIf the social account is already associated with a different user, the redirect URL will include two query parameters:
error = '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 transferIn this case, you should:
/api/users/verify
with the following payload:This will:
The url
property contains the authentication URL that you should redirect your user to.
Snag allows you to use your own OAuth applications for Twitter, Discord, Epic Games, and Steam integrations. This enables you to maintain your brand identity throughout the authentication flow and have more control over the user experience.
If you would like to use your own client ID and client secret for any of these platforms, please contact the Snag team for integration support. We’ll guide you through the process of setting up and configuring your custom OAuth applications with our system.
You will also need to add the following redirect URLs to your OAuth application:
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
After connecting social accounts, you can use this information to enhance the user experience in your application and leverage it for loyalty program features.
This recipe explains how to use Snag social integration API to let your users connect their social accounts to their Snag profile.
This guide explains how to use Snag’s social integration API to let your users connect their social accounts to their Snag profile. After creating a user in Snag (as explained in Managing User Accounts), you can use the social authentication endpoints to connect various social platforms to that user’s profile.
Snag supports connecting the following social platforms:
Where {authType}
is one of: twitter
, discord
, telegram
, epic
, or steam
.
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
parameterIf the social account is already associated with a different user, the redirect URL will include two query parameters:
error = '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 transferIn this case, you should:
/api/users/verify
with the following payload:This will:
The url
property contains the authentication URL that you should redirect your user to.
Snag allows you to use your own OAuth applications for Twitter, Discord, Epic Games, and Steam integrations. This enables you to maintain your brand identity throughout the authentication flow and have more control over the user experience.
If you would like to use your own client ID and client secret for any of these platforms, please contact the Snag team for integration support. We’ll guide you through the process of setting up and configuring your custom OAuth applications with our system.
You will also need to add the following redirect URLs to your OAuth application:
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
After connecting social accounts, you can use this information to enhance the user experience in your application and leverage it for loyalty program features.