Fixed louis's PR

This commit is contained in:
Clément Le Bihan
2023-12-04 14:32:09 +01:00
parent 27119056a4
commit d0f9c4a032
2 changed files with 2 additions and 2 deletions

View File

@@ -14,10 +14,8 @@ export class AuthService {
) {}
validateApiKey(apikey: string): boolean {
console.log("wow");
if (process.env.API_KEYS == null) return false;
const keys = process.env.API_KEYS.split(',');
console.log(keys);
return keys.includes(apikey);
}

2
front/.gitignore vendored
View File

@@ -3,6 +3,8 @@
# dependencies
node_modules/
.idea/
# Expo
.expo/
dist/