Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
, (err: Auth0Error, token: Auth0DelegationToken): void => {
if (err) {
this.notif.error(err.message);
} else {
this.af.auth.login(token.id_token, {
method: AuthMethods.CustomToken, provider: AuthProviders.Custom
}).then((resp: any): void => {
// this.notif.Success('You successfully loged in');
}, (err: Error): void => {
this.notif.error(err.message);
});
}
});
}
firebaseLoginWithCustomToken(token: string) {
return this.auth$.login(token, {
provider: AuthProviders.Custom,
method: AuthMethods.CustomToken
});
}