SEC: Remove token from URL after reading

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2021-07-11 16:13:29 +02:00
parent 18d06a8926
commit 2eae3b8266
Signed by: luzifer
GPG Key ID: 0066F03ED215AD7D

1
app.js
View File

@ -290,6 +290,7 @@ new Vue({
mounted() {
this.twitchToken = new URLSearchParams(window.location.hash.substr(1)).get('access_token') || null
if (this.twitchToken) {
window.location.hash = '' // Remove token from hash for security
this.initChart()
}
},