Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public async login() {
const authManager = new AuthManager({ clientId: this.clientId });
let result = await authManager.finalizeLogin();
if (!result.isLoggedIn) {
authManager.login();
}
result = result as LoggedIn;
this.credentials = result.creds;
this.availableSubscriptions = result.availableSubscriptions;
}