How to use the angularfire2.AuthProviders.Custom function in angularfire2

To help you get started, we’ve selected a few angularfire2 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github TwanoO67 / bootstraping-ngx-admin-lte / src / app / services / auth.service.ts View on Github external
, (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);
                });
              }
            });
        }
github crabcanon / angular2-ionic2-demo / src / providers / firebase-service.ts View on Github external
firebaseLoginWithCustomToken(token: string) {
    return this.auth$.login(token, {
      provider: AuthProviders.Custom,
      method: AuthMethods.CustomToken
    });
  }