Skip to content

Commit 0e04082

Browse files
authored
Social SDK: Fix OAuth2 device authorization endpoint URL (#7745)
Correct the OAuth2 device flow endpoint from `/oauth2/device/code` to `/oauth2/device/authorize` in the console account linking example.
1 parent feaa15b commit 0e04082

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/discord-social-sdk/development-guides/account-linking-on-consoles.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def authorize_device():
114114
data = {"scope": SCOPE}
115115
headers = {"Content-Type": "application/x-www-form-urlencoded"}
116116
117-
response = requests.post(f"{API_ENDPOINT}/oauth2/device/code", data=data, headers=headers, auth=(CLIENT_ID, CLIENT_SECRET))
117+
response = requests.post(f"{API_ENDPOINT}/oauth2/device/authorize", data=data, headers=headers, auth=(CLIENT_ID, CLIENT_SECRET))
118118
response.raise_for_status()
119119
return response.json()
120120
```

0 commit comments

Comments
 (0)