We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da9d05f commit ad4e9faCopy full SHA for ad4e9fa
src/components/Callback.vue
@@ -42,7 +42,10 @@ async function fetchTokens(code: string) {
42
code,
43
redirect_uri: window.location.origin,
44
})
45
- const resp = await fetch(`https://id.twitch.tv/oauth2/token?${params}`, { method: 'POST' })
+ const resp = await fetch(`https://id.twitch.tv/oauth2/token?${params}`, {
46
+ method: 'POST',
47
+ body: params.toString(),
48
+ })
49
50
const data = await resp.json()
51
if ('message' in data) {
0 commit comments