We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33574cd commit d1ee610Copy full SHA for d1ee610
src/account.html
@@ -137,7 +137,8 @@
137
try {
138
const res = await fetch(`https://scratch-id.onrender.com/verification/${PC}`);
139
const data = await res.json();
140
- const plainUsername = data.username;
+ const key = Object.keys(data)[0]; // Get the first key (the unique ID)
141
+ const plainUsername = data[key].user;
142
const encodedUsername = btoa(plainUsername);
143
144
if (encodedUsername === 'YmFubmllNg==') {
0 commit comments