Fix: Do not send hash in redirect_uri

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2021-07-11 16:14:38 +02:00
parent 2eae3b8266
commit 09a296ea98
Signed by: luzifer
GPG key ID: 0066F03ED215AD7D

2
app.js
View file

@ -22,7 +22,7 @@ new Vue({
const params = new URLSearchParams() const params = new URLSearchParams()
params.set('client_id', twitchClientID) params.set('client_id', twitchClientID)
params.set('redirect_uri', window.location.href) params.set('redirect_uri', window.location.href.split('#')[0])
params.set('response_type', 'token') params.set('response_type', 'token')
params.set('scope', scopes.join(' ')) params.set('scope', scopes.join(' '))