Skip to content

Commit

Permalink
fix: Encode the entire URI used to login with Twitch (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
HiDeoo authored Mar 5, 2021
1 parent 3bb7118 commit 56a861b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/server/libs/twitch/AuthProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,9 @@ module.exports = class AuthProvider {
}

getAuthUrl(scopes) {
const redir = encodeURIComponent(this.redirectURI);

return (
return encodeURI(
`${authBaseURL}&client_id=${this.clientId}` +
`&redirect_uri=${redir}&scope=${scopes.join(" ")}` +
`&redirect_uri=${this.redirectURI}&scope=${scopes.join(" ")}` +
`&force_verify=${this.forceVerify ? "true" : "false"}`
);
}
Expand Down

0 comments on commit 56a861b

Please sign in to comment.