Skip to content

Commit 1b75c0b

Browse files
authored
🐛 Fix: oauth device flow scopes param name error (#240)
1 parent 9e4744d commit 1b75c0b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

githubkit/auth/oauth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def create_device_code(
3636
url = base_url.copy_with(raw_path=base_url.raw_path + b"login/device/code")
3737
body = {"client_id": client_id}
3838
if scopes:
39-
body["scopes"] = " ".join(scopes)
39+
body["scope"] = " ".join(scopes)
4040
response = yield httpx.Request(
4141
"POST",
4242
url,

0 commit comments

Comments
 (0)