Skip to content

Commit

Permalink
Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
LoydOsborne committed Mar 16, 2024
1 parent df2f291 commit 4380444
Show file tree
Hide file tree
Showing 11 changed files with 35 additions and 35 deletions.
8 changes: 4 additions & 4 deletions oauth/discord/callback/index-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const currentURL = window.location.href;

function redirectToDiscord() {

const AuthUrl = `https://auth.scyted.tv/www.scyted.tv/resources-temp?redirectUri=${currentURL}callback`;
const AuthUrl = `https://auth.scyted.tv/www.scyted.tv/discord?redirectUri=${currentURL}callback`;
window.location.href = AuthUrl;
}

Expand All @@ -11,7 +11,7 @@ document.addEventListener("DOMContentLoaded", function () {
displayContents();
// Redirect to login if access token is not found
if (!storedAccessToken) {
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/resources-temp?redirectUri=${currentURL}`;
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/discord?redirectUri=${currentURL}`;
displayLoginButton();
} else {
// Fetch user data from Discord API
Expand All @@ -33,7 +33,7 @@ document.addEventListener("DOMContentLoaded", function () {
// Clear cookies
// document.cookie = "accessToken=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
// Redirect to the specified page if the user's ID is not in the
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/resources-temp?error=invalidAccess`;
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/discord?error=invalidAccess`;
displayContents();
displayUserInfo(userData);
}
Expand All @@ -48,7 +48,7 @@ document.addEventListener("DOMContentLoaded", function () {
// Clear cookies
// document.cookie = "accessToken=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
// Handle error (e.g., redirect to login page)
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/resources-temp?error=fetchingUserData`;
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/discord?error=fetchingUserData`;
});
}
});
Expand Down
8 changes: 4 additions & 4 deletions oauth/discord/index-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const currentURL = window.location.href;

function redirectToDiscord() {

const AuthUrl = `https://auth.scyted.tv/www.scyted.tv/resources-temp?redirectUri=${currentURL}callback`;
const AuthUrl = `https://auth.scyted.tv/www.scyted.tv/discord?redirectUri=${currentURL}callback`;
window.location.href = AuthUrl;
}

Expand All @@ -11,7 +11,7 @@ document.addEventListener("DOMContentLoaded", function () {
displayContents();
// Redirect to login if access token is not found
if (!storedAccessToken) {
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/resources-temp?redirectUri=${currentURL}`;
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/discord?redirectUri=${currentURL}`;
displayLoginButton();
} else {
// Fetch user data from Discord API
Expand All @@ -33,7 +33,7 @@ document.addEventListener("DOMContentLoaded", function () {
// Clear cookies
// document.cookie = "accessToken=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
// Redirect to the specified page if the user's ID is not in the
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/resources-temp?error=invalidAccess`;
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/discord?error=invalidAccess`;
displayContents();
displayUserInfo(userData);
}
Expand All @@ -48,7 +48,7 @@ document.addEventListener("DOMContentLoaded", function () {
// Clear cookies
// document.cookie = "accessToken=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
// Handle error (e.g., redirect to login page)
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/resources-temp?error=fetchingUserData`;
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/discord?error=fetchingUserData`;
});
}
});
Expand Down
6 changes: 3 additions & 3 deletions resources/heart-collectors/index-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ document.addEventListener("DOMContentLoaded", function () {

// Redirect to login if access token is not found
if (!storedAccessToken) {
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/resources-temp?redirectUri=${currentURL}`;
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/discord?redirectUri=${currentURL}`;
displayAccessError();
} else {
// Fetch user data from Discord API
Expand All @@ -33,7 +33,7 @@ document.addEventListener("DOMContentLoaded", function () {
// Clear cookies
// document.cookie = "accessToken=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
// Redirect to the specified page if the user's ID is not in the
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/resources-temp?error=invalidAccess`;
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/discord?error=invalidAccess`;
// displayErrorInvalidAccess();
return true;
}
Expand All @@ -48,7 +48,7 @@ document.addEventListener("DOMContentLoaded", function () {
// Clear cookies
// document.cookie = "accessToken=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
// Handle error (e.g., redirect to login page)
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/resources-temp?error=fetchingUserData`;
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/discord?error=fetchingUserData`;
});
}
});
Expand Down
6 changes: 3 additions & 3 deletions resources/jbw-archive/index-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ document.addEventListener("DOMContentLoaded", function () {
displayContents();
// Redirect to login if access token is not found
if (!storedAccessToken) {
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/resources-temp?redirectUri=${currentURL}`;
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/discord?redirectUri=${currentURL}`;
displayLoginButton();
} else {
// Fetch user data from Discord API
Expand All @@ -33,7 +33,7 @@ document.addEventListener("DOMContentLoaded", function () {
// Clear cookies
// document.cookie = "accessToken=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
// Redirect to the specified page if the user's ID is not in the
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/resources-temp?error=invalidAccess`;
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/discord?error=invalidAccess`;
displayContents();
displayUserInfo(userData);
}
Expand All @@ -48,7 +48,7 @@ document.addEventListener("DOMContentLoaded", function () {
// Clear cookies
// document.cookie = "accessToken=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
// Handle error (e.g., redirect to login page)
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/resources-temp?error=fetchingUserData`;
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/discord?error=fetchingUserData`;
});
}
});
Expand Down
6 changes: 3 additions & 3 deletions resources/jbw-beta/index-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ document.addEventListener("DOMContentLoaded", function () {
displayContents();
// Redirect to login if access token is not found
if (!storedAccessToken) {
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/resources-temp?redirectUri=${currentURL}`;
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/discord?redirectUri=${currentURL}`;
displayLoginButton();
} else {
// Fetch user data from Discord API
Expand All @@ -33,7 +33,7 @@ document.addEventListener("DOMContentLoaded", function () {
// Clear cookies
// document.cookie = "accessToken=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
// Redirect to the specified page if the user's ID is not in the
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/resources-temp?error=invalidAccess`;
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/discord?error=invalidAccess`;
displayContents();
displayUserInfo(userData);
}
Expand All @@ -48,7 +48,7 @@ document.addEventListener("DOMContentLoaded", function () {
// Clear cookies
// document.cookie = "accessToken=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
// Handle error (e.g., redirect to login page)
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/resources-temp?error=fetchingUserData`;
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/discord?error=fetchingUserData`;
});
}
});
Expand Down
6 changes: 3 additions & 3 deletions resources/jujus-better-wynncraft/index-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ document.addEventListener("DOMContentLoaded", function () {
displayContents();
// Redirect to login if access token is not found
if (!storedAccessToken) {
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/resources-temp?redirectUri=${currentURL}`;
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/discord?redirectUri=${currentURL}`;
displayLoginButton();
} else {
// Fetch user data from Discord API
Expand All @@ -33,7 +33,7 @@ document.addEventListener("DOMContentLoaded", function () {
// Clear cookies
// document.cookie = "accessToken=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
// Redirect to the specified page if the user's ID is not in the
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/resources-temp?error=invalidAccess`;
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/discord?error=invalidAccess`;
displayContents();
displayUserInfo(userData);
}
Expand All @@ -48,7 +48,7 @@ document.addEventListener("DOMContentLoaded", function () {
// Clear cookies
// document.cookie = "accessToken=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
// Handle error (e.g., redirect to login page)
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/resources-temp?error=fetchingUserData`;
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/discord?error=fetchingUserData`;
});
}
});
Expand Down
6 changes: 3 additions & 3 deletions resources/levlr/index-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ document.addEventListener("DOMContentLoaded", function () {

// Redirect to login if access token is not found
if (!storedAccessToken) {
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/resources-temp?redirectUri=${currentURL}`;
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/discord?redirectUri=${currentURL}`;
displayAccessError();
} else {
// Fetch user data from Discord API
Expand All @@ -37,7 +37,7 @@ document.addEventListener("DOMContentLoaded", function () {
// Clear cookies
// document.cookie = "accessToken=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
// Redirect to the specified page if the user's ID is not in the
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/resources-temp?error=invalidAccess`;
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/discord?error=invalidAccess`;
// displayErrorInvalidAccess();
return true;
}
Expand All @@ -52,7 +52,7 @@ document.addEventListener("DOMContentLoaded", function () {
// Clear cookies
// document.cookie = "accessToken=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
// Handle error (e.g., redirect to login page)
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/resources-temp?error=fetchingUserData`;
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/discord?error=fetchingUserData`;
});
}
});
Expand Down
6 changes: 3 additions & 3 deletions resources/scytedtv-assets/index-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ document.addEventListener("DOMContentLoaded", function () {

// Redirect to login if access token is not found
if (!storedAccessToken) {
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/resources-temp?redirectUri=${currentURL}`;
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/discord?redirectUri=${currentURL}`;
displayAccessError();
} else {
// Fetch user data from Discord API
Expand All @@ -35,7 +35,7 @@ document.addEventListener("DOMContentLoaded", function () {
// Clear cookies
// document.cookie = "accessToken=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
// Redirect to the specified page if the user's ID is not in the
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/resources-temp?error=invalidAccess`;
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/discord?error=invalidAccess`;
displayErrorInvalidAccess();
}
})
Expand All @@ -49,7 +49,7 @@ document.addEventListener("DOMContentLoaded", function () {
// Clear cookies
// document.cookie = "accessToken=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
// Handle error (e.g., redirect to login page)
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/resources-temp?error=fetchingUserData`;
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/discord?error=fetchingUserData`;
});
}
});
Expand Down
6 changes: 3 additions & 3 deletions resources/wave/index-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ document.addEventListener("DOMContentLoaded", function () {
displayContents();
// Redirect to login if access token is not found
if (!storedAccessToken) {
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/resources-temp?redirectUri=${currentURL}`;
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/discord?redirectUri=${currentURL}`;
displayLoginButton();
} else {
// Fetch user data from Discord API
Expand All @@ -33,7 +33,7 @@ document.addEventListener("DOMContentLoaded", function () {
// Clear cookies
// document.cookie = "accessToken=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
// Redirect to the specified page if the user's ID is not in the
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/resources-temp?error=invalidAccess`;
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/discord?error=invalidAccess`;
displayContents();
displayUserInfo(userData);
}
Expand All @@ -48,7 +48,7 @@ document.addEventListener("DOMContentLoaded", function () {
// Clear cookies
// document.cookie = "accessToken=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
// Handle error (e.g., redirect to login page)
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/resources-temp?error=fetchingUserData`;
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/discord?error=fetchingUserData`;
});
}
});
Expand Down
6 changes: 3 additions & 3 deletions resources/wave/privacy-policy/index-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ document.addEventListener("DOMContentLoaded", function () {
displayContents();
// Redirect to login if access token is not found
if (!storedAccessToken) {
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/resources-temp?redirectUri=${currentURL}`;
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/discord?redirectUri=${currentURL}`;
displayLoginButton();
} else {
// Fetch user data from Discord API
Expand All @@ -33,7 +33,7 @@ document.addEventListener("DOMContentLoaded", function () {
// Clear cookies
// document.cookie = "accessToken=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
// Redirect to the specified page if the user's ID is not in the
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/resources-temp?error=invalidAccess`;
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/discord?error=invalidAccess`;
displayContents();
displayUserInfo(userData);
}
Expand All @@ -48,7 +48,7 @@ document.addEventListener("DOMContentLoaded", function () {
// Clear cookies
// document.cookie = "accessToken=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
// Handle error (e.g., redirect to login page)
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/resources-temp?error=fetchingUserData`;
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/discord?error=fetchingUserData`;
});
}
});
Expand Down
6 changes: 3 additions & 3 deletions resources/wave/terms-of-service/index-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ document.addEventListener("DOMContentLoaded", function () {
displayContents();
// Redirect to login if access token is not found
if (!storedAccessToken) {
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/resources-temp?redirectUri=${currentURL}`;
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/discord?redirectUri=${currentURL}`;
displayLoginButton();
} else {
// Fetch user data from Discord API
Expand All @@ -33,7 +33,7 @@ document.addEventListener("DOMContentLoaded", function () {
// Clear cookies
// document.cookie = "accessToken=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
// Redirect to the specified page if the user's ID is not in the
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/resources-temp?error=invalidAccess`;
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/discord?error=invalidAccess`;
displayContents();
displayUserInfo(userData);
}
Expand All @@ -48,7 +48,7 @@ document.addEventListener("DOMContentLoaded", function () {
// Clear cookies
// document.cookie = "accessToken=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
// Handle error (e.g., redirect to login page)
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/resources-temp?error=fetchingUserData`;
// window.location.href = `https://auth.scyted.tv/www.scyted.tv/discord?error=fetchingUserData`;
});
}
});
Expand Down

0 comments on commit 4380444

Please sign in to comment.