mirror of
https://github.com/mudabbir-ahmad/Media-Aggregation-and-Sorting-System.git
synced 2026-10-07 19:40:20 +00:00
16 lines
613 B
JavaScript
16 lines
613 B
JavaScript
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;
|