Skip to content

Commit 5629370

Browse files
committed
feedback
1 parent 4483c86 commit 5629370

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

docs/discord-social-sdk/development-guides/using-provisional-accounts.mdx

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ For existing Discord users who have added a provisional account as a game friend
7272

7373
Discord offers a number of authentication methods, the one you use depends on how you game and account system is set up:
7474

75-
1. Use the [Bot Token Endpoint](/docs/discord-social-sdk/development-guides/using-provisional-accounts#bot-token-endpoint#) if your game has an account system which uniquely identifies users. This is the recommended approach when possible.
76-
2. Use the [External Credentials Exchange Endpoint](/docs/discord-social-sdk/development-guides/using-provisional-accounts#external-credentials-exchange-endpoint) if you have an existing OIDC provider, or do not have an account system.
77-
3. Use the [Client Side Token Exchange Method](/docs/discord-social-sdk/development-guides/using-provisional-accounts#provisional-account-authentication-for-public-clients) if you are using a Public Client.
75+
1. Use the [Bot Token Endpoint](/docs/discord-social-sdk/development-guides/using-provisional-accounts#server-authentication-with-bot-token-endpoint) if your game has an account system which uniquely identifies users. This is the recommended approach when possible.
76+
2. Use the [Server Authentication with External Credentials Exchange](/docs/discord-social-sdk/development-guides/using-provisional-accounts#server-authentication-with-external-credentials-exchange) if you have an existing OIDC provider, or do not have an account system.
77+
3. Use the [Client Side Token Exchange Method](/docs/discord-social-sdk/development-guides/using-provisional-accounts#authentication-for-public-clients) if you are using a Public Client.
7878

7979
If you are using (2) or (3), you must configure you identity provider before being able to create provisional accounts.
8080

@@ -122,12 +122,12 @@ You provide external authentication and uniquely identifies the user, and Discor
122122

123123
Once authentication is complete, you can use the access token as you would a full Discord user's access token.
124124

125+
### Server Authentication with Bot Token Endpoint
125126

126-
### Provisional Account Authentication for Servers
127-
128-
If you are not using the [`Client::GetProvisionalToken`] method, you'll need to make a request to the Discord API provisional account token endpoint.
127+
:::info
128+
This is the preferred method of authentication. It ends up being the simplest choice for most provisional account integrations.
129+
:::
129130

130-
#### Bot Token Endpoint
131131
```python
132132
# filepath: your_game/server/auth.py
133133
import requests
@@ -142,6 +142,7 @@ def get_provisional_token(game_account: GameAccount):
142142
}
143143
)
144144
return response.json()
145+
```
145146

146147
#### Bot Token Endpoint Response
147148

@@ -155,7 +156,7 @@ def get_provisional_token(game_account: GameAccount):
155156
}
156157
```
157158

158-
#### External Credentials Exchange Endpoint
159+
### Server Authentication with External Credentials Exchange
159160
```python
160161
# filepath: your_game/server/auth.py
161162
import requests
@@ -186,7 +187,7 @@ def get_provisional_token(external_token: str):
186187
}
187188
```
188189

189-
### Provisional Account Authentication for Public Clients
190+
### Authentication for Public Clients
190191

191192
<PublicClient />
192193

0 commit comments

Comments
 (0)