created a localised login system

This commit is contained in:
bobbert committed 2026-02-21 13:14:01 +00:00
1 parent 59ac1fc926
commit 37511780b7
16 files changed
+3721 -20

No files matched your search

+34
View File
@@ -0,0 +1,34 @@
/**
* Abstract base class for authentication services
* This provides a common interface for different authentication providers
*/
export class AuthServiceBase {
constructor() {
if (new.target === AuthServiceBase) {
throw new TypeError('Cannot instantiate abstract class');
}
}
async authenticate() {
throw new Error('authenticate() must be implemented');
}
async getAccessToken() {
throw new Error('getAccessToken() must be implemented');
}
async refreshToken() {
throw new Error('refreshToken() must be implemented');
}
async revokeAccess() {
throw new Error('revokeAccess() must be implemented');
}
async getUserInfo() {
throw new Error('getUserInfo() must be implemented');
}
}
export default AuthServiceBase;