From 3e8f52a200bab9e0ef5bf7a9fdfef29799a17b9f Mon Sep 17 00:00:00 2001 From: cyber-dream Date: Sun, 14 Jan 2024 20:33:14 +0300 Subject: [PATCH] auth fix --- app/assets/js/scripts/loginSkirdaDiscord.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/assets/js/scripts/loginSkirdaDiscord.js b/app/assets/js/scripts/loginSkirdaDiscord.js index 46b5d2b..923145b 100644 --- a/app/assets/js/scripts/loginSkirdaDiscord.js +++ b/app/assets/js/scripts/loginSkirdaDiscord.js @@ -125,10 +125,7 @@ loginSkirdaDiscordButton.addEventListener('click', async () =>{ console.log(yggAuthRes) - AuthManager.addSkirdaAccount(yggAuthRes.profile.id, yggAuthRes.accessToken, skirdaAuth.skirdaUserId, yggAuthRes.profile.name, skirdaAuth.token) - - // AuthManager.addSkirdaAccount(account.uuid, account.token, account.username, account.displayName) - AuthManager.addSkirdaAccount(account.uuid, account.token, account.username, account.displayName) + AuthManager.addSkirdaAccount(yggAuthRes.profile.id, skirdaAuth.token, skirdaAuth.skirdaUserId, yggAuthRes.profile.name, skirdaAuth.token) setTimeout(() => { switchView(VIEWS.loginSkirdaDiscord, VIEWS.landing, 500, 500)