Skip to content

Commit 2a4fa2b

Browse files
authored
Update account.html
1 parent 6f0b6a2 commit 2a4fa2b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/account.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135

136136
if (PC) {
137137
try {
138-
const res = await fetch(`https://auth-api.itinerary.eu.org/auth/verifyToken/${PC}`);
138+
const res = await fetch(`https://scratch-id.onrender.com/verification/${PC}`);
139139
const data = await res.json();
140140
const plainUsername = data.username;
141141
const encodedUsername = btoa(plainUsername);
@@ -170,10 +170,10 @@
170170
function registerScratchAuth() {
171171
const messageBox = document.getElementById("scratchMessage");
172172
const redirectLocation = btoa(window.location.href);
173-
const authUrl = `https://auth.itinerary.eu.org/auth?redirect=${redirectLocation}&name=Scratch%20Coding%20Hut`;
173+
const authUrl = `https://scratch-id.onrender.com/?redirect=${redirectLocation}&name=Scratch%20Coding%20Hut`;
174174

175175
messageBox.style.color = "green";
176-
messageBox.textContent = "Redirecting to ScratchAuth... Follow the steps there.";
176+
messageBox.textContent = "Redirecting to ScratchID... Follow the steps there.";
177177
setTimeout(() => {
178178
window.location.href = authUrl;
179179
}, 2000);

0 commit comments

Comments
 (0)