mirror of
https://github.com/kurbezz/discord-bot.git
synced 2026-03-03 15:00:46 +01:00
Fix callback component
This commit is contained in:
@@ -58,7 +58,7 @@ const Main = {
|
|||||||
const AuthCallbackTwitch = {
|
const AuthCallbackTwitch = {
|
||||||
setup() {
|
setup() {
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
fetch('/api/auth/callback/twitch/' + urlParams.search)
|
fetch('/api/auth/callback/twitch/' + window.location.search)
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(data => {
|
.then(data => {
|
||||||
localStorage.setItem('token', data.token);
|
localStorage.setItem('token', data.token);
|
||||||
|
|||||||
Reference in New Issue
Block a user