You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Discord Social SDK 1.1 Release
This PR includes changelog and related updates to documentation so
it can be merged atomically.
Details include:
* The changelog for the release.
* Updated mappings for doxygen docs.
* Updated Provisional Account docs for Unity Services.
* Added links on Provisional Account docs to all other services.
* Add PlayStation4 and Xbox One support to supported platforms list.
* Trailing spaces cleanup.
* Review updates.
* Change date, so it displays on top.
Copy file name to clipboardExpand all lines: docs/discord-social-sdk/development-guides/using-provisional-accounts.mdx
+16-7Lines changed: 16 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ import SupportCallout from '../partials/callouts/support.mdx';
10
10
11
11
## Overview
12
12
13
-
Provisional accounts let players use Social SDK features in your game without linking a Discord account so all players can have a consistent gameplay experience.
13
+
Provisional accounts let players use Social SDK features in your game without linking a Discord account so all players can have a consistent gameplay experience.
14
14
15
15
With provisional accounts, players can:
16
16
@@ -25,7 +25,7 @@ This guide will show you how to:
25
25
26
26
1. Set up provisional accounts for your game
27
27
2. Create and manage provisional accounts
28
-
3. Handle account merging when users want to upgrade to full Discord
28
+
3. Handle account merging when users want to upgrade to full Discord
29
29
30
30
## Prerequisites
31
31
@@ -121,7 +121,7 @@ The callback function will be invoked with an access token that expires in 1 hou
> When the token expires, the SDK will still receive updates, such as new messages sent in a lobby, and any voice calls will continue to be active. However, any new actions, such as sending a message or adding a friend, will fail. You can get a new token and pass it to UpdateToken without interrupting the user's experience.
126
126
127
127
#### Provisional Account Access Token Storage
@@ -140,6 +140,7 @@ If you are not using the [`Client::GetProvisionalToken`] method, you'll need to
140
140
| STEAM_SESSION_TICKET | A Steam auth ticket for web generated with discord as the identity |
141
141
| EPIC_ONLINE_SERVICES_ACCESS_TOKEN | Access token for Epic Online Services. Supports EOS Auth access tokens |
142
142
| EPIC_ONLINE_SERVICES_ID_TOKEN | ID token for Epic Online Services. Supports both EOS Auth + Connect ID tokens |
143
+
| UNITY_SERVICES_ID_TOKEN | Unity Services authentication ID token |
143
144
144
145
145
146
```python
@@ -192,9 +193,17 @@ Common error codes and solutions for the GetProvisionalToken method:
192
193
193
194
Using these credentials, we'll create a limited Discord account just for your game and try to set the username for you according to the following:
194
195
195
-
- For OIDC, a provisional account's display name will be the value of the preferred_username claim, if specified in the ID token. This field is optional and should be between 1 and 32 characters. If not specified, the user's display name will default to the user's unique username, which Discord generates on creation.
196
-
- For Steam session tickets, the display name of the user's Steam account is used as the provisional account's display name.
197
-
- For EOS Auth Access Tokens or ID Tokens, the name of the user's Epic account is used as the provisional account's display name. EOS Connect ID Tokens do not expose any username, and thus the game will need to configure the display name with [`Client::UpdateProvisionalAccountDisplayName`].
196
+
- For OIDC, a provisional account's display name will be the value of the `preferred_username` claim, if specified in
197
+
the ID token. This field is optional and should be between 1 and 32 characters. If not specified, the user's display
198
+
name will default to the user's unique username, which Discord generates on creation.
199
+
- For [Steam session tickets](https://partner.steamgames.com/doc/features/auth), the display name of the user's Steam
200
+
account is used as the provisional account's display name.
201
+
- For [EOS Auth](https://dev.epicgames.com/docs/epic-account-services/auth/auth-interface) Access Tokens or ID Tokens,
202
+
the name of the user's Epic account is used as the provisional account's display name. EOS Connect ID Tokens do
203
+
not expose any username, and thus the game will need to configure the display name with
204
+
[`Client::UpdateProvisionalAccountDisplayName`].
205
+
- For [Unity Services ID Tokens](https://services.docs.unity.com/docs/client-auth/),
206
+
the display name of the user's Unity Player Account is used as the provisional account's display name.
198
207
199
208
If you'd like to set the display name for a provisional account, you can use the [`Client::UpdateProvisionalAccountDisplayName`] method.
200
209
@@ -390,7 +399,7 @@ Now that you've set up provisional accounts for your game, you can explore more
0 commit comments