mirror of
https://github.com/mudabbir-ahmad/Media-Aggregation-and-Sorting-System.git
synced 2026-10-08 03:40:20 +00:00
added NAS configuration file; updated MediaViewer to support thumbnail carousel; improved error handling in NASAPI and NASAUTH; refactored various comments for clarity
This commit is contained in:
1 parent
9519b32d68
commit
f8e11fc368
27 files changed
+1036
-558
No files matched your search
@@ -1,7 +1,4 @@
|
||||
/**
|
||||
* Abstract base class for authentication services
|
||||
* This provides a common interface for different authentication providers
|
||||
*/
|
||||
// Abstract base class for authentication services — provides a common interface for all providers
|
||||
export class AuthServiceBase {
|
||||
constructor() {
|
||||
if (new.target === AuthServiceBase) {
|
||||
@@ -9,26 +6,11 @@ export class AuthServiceBase {
|
||||
}
|
||||
}
|
||||
|
||||
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');
|
||||
}
|
||||
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;
|
||||
|
||||
Reference in new issue
Block a user