fix userAccess error handling, test non-existing user

This commit is contained in:
martin-mfg
2025-10-11 17:53:01 +02:00
parent bddd4c7b95
commit a246be883e
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ const getUserMetadata = async (userKey) => {
return result.data;
} catch (error) {
console.error(error);
return '';
return null;
}
};
+1
View File
@@ -151,6 +151,7 @@ const HomeScreen = () => {
const ghToken = prompt('input GitHub token:');
process.env['PAT_1'] = ghToken;
await testEndpoint('/api/wakatime?username=ffflabs');
await testEndpoint('/api/wakatime?username=ffflabsASDF');
console.log('PAT_1: ', process.env.PAT_1);
// console.log(router);
/*