diff --git a/src/ozonetel/ozonetel-admin-auth.service.ts b/src/ozonetel/ozonetel-admin-auth.service.ts index 46f0b0c..d3c70ca 100644 --- a/src/ozonetel/ozonetel-admin-auth.service.ts +++ b/src/ozonetel/ozonetel-admin-auth.service.ts @@ -113,7 +113,7 @@ export class OzonetelAdminAuthService implements OnModuleInit { } this.logger.log(`Ozonetel admin login successful (userId=${this.cachedUserId}, expires in ${Math.round((this.tokenExpiresAt - Date.now()) / 60000)}min)`); - return this.cachedToken; + return this.cachedToken!; } isConfigured(): boolean {