Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to remove recommend login with google, when I'm logged in with a regular account #742

Open
GabrielMJin opened this issue Dec 13, 2023 · 1 comment

Comments

@GabrielMJin
Copy link

Hi, guys.
How do I identify that I am logged in with an account other than a social network, and do not recommend logging in with Google?

example: when i logged with my email, the library does not identify that I logged in
because I don't use the library to login with my email

@lwestfall
Copy link

lwestfall commented Jan 1, 2024

FYI this probably should be in a discussion or stackoverflow - not an issue.

There's a lot of ways to do this, just wrap your asl-google-signin-button directive in a container with conditional logic checking some signed in state in your component, or put it in a template that's rendered as an else block, e.g.:

<div *ngIf="signedIn; else notLoggedIn">
    Hi, {{ (user.firstName }}!
</div>
<ng-template #notLoggedIn>
  <asl-google-signin-button
    type="standard"
    size="medium"
    theme="filled_blue"
    logo_alignment="center">
  </asl-google-signin-button>
</ng-template>

See https://angular.io/api/common/NgIf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants