Skip to content

Commit

Permalink
clean redirect uri
Browse files Browse the repository at this point in the history
  • Loading branch information
haliphax committed Mar 13, 2024
1 parent 47293bc commit c6c6ede
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/discord.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const getNewDiscordToken = () => {
// @ts-ignore
const clientId = import.meta.env.VITE_APP_CLIENT_ID;
const oauthScope = ["identify", "guilds", "guilds.members.read"];
const redirectUri = window.location.href;
const redirectUri = window.location.href.replace(/[#?].*$/, "");

Cookies.remove("token");
window.location.assign(
Expand Down

0 comments on commit c6c6ede

Please sign in to comment.