Implement Google Signin | Angular

Поділитися
Вставка
  • Опубліковано 12 січ 2025

КОМЕНТАРІ • 74

  • @kiranvarghese672
    @kiranvarghese672 2 роки тому +5

    this video is a gem.. the last few information/tips shared is really appreciated.

  • @MrRuntoyou
    @MrRuntoyou Рік тому +2

    thanks for your tutorial, you saved my school's project

  • @GamerAle12
    @GamerAle12 2 роки тому +2

    Thank you so much professor, i have been problems with the implementation but saw your video and works all! I Send vibes from Argentina!!

  • @narthanasathsara7192
    @narthanasathsara7192 2 роки тому +1

    fantastic.. very useful.. waiting for your full tutorial. Thank you.

  • @souravsingh7847
    @souravsingh7847 2 роки тому +1

    Wow what a great explanation keep doing great work please make a video on fb and twitter login .You are doing great work .

  • @JustWantToHideMyName
    @JustWantToHideMyName 2 роки тому +2

    Thank you so much for this video. I managed to deliver web app within time. One request for you, please make video for sign in with Facebook. Thank you

  • @sharif47
    @sharif47 7 місяців тому

    7:46
    This subscription works fine on the first login.
    However, on subsequent logins (without any page refresh), everything inside the subscription runs once more than the last time.
    I think it's because somehow the old observable subscription does not go away and thus here, we're ending up subscribing to all previous versions. In that case, my idea was to unsubscribe on login complete (via onDestroy hook). However, that doesn't seem to do much change either. I think before doing that, login page would autologin, which doesn't happen anymore. So that's something.
    Any idea what the issue could be and how to solve it?
    Edit: What Id should have done was create a new variable to store the subscription (or assign to an existing variable).
    Then I can unsubscribe that variable when needed.

  • @kunalrode-ui7vd
    @kunalrode-ui7vd 2 роки тому +1

    Thanks For detail video on this

  • @m_galex
    @m_galex Рік тому

    Please create a video for back-end setup....love you ❤

  • @kavyapriya.k7646
    @kavyapriya.k7646 2 роки тому +1

    Bro, this vedio was really helpful for me. can you please upload vedio for microsoft login using angular

  • @cichlidHobbiest
    @cichlidHobbiest 2 роки тому +1

    Wow! amazing! You saved me hours of trying to figure that out. Can you make a video on how to do it using Firebase to keep the session & use a Firebase database?

  • @SuperYkf
    @SuperYkf Рік тому

    Thanks for this video. Loved the explanation. Can you help me understand why we didn't need to use the client secret, which was displayed at time 4:07 in the video?

  • @deepakdubey2466
    @deepakdubey2466 2 роки тому +1

    good explanation bro

  • @shakib_04
    @shakib_04 Рік тому +1

    please make the video. so much helpful

  • @sharif47
    @sharif47 7 місяців тому

    How do you do authorization?
    In my case, I can only get access token and each time I do, I have to sign in for some reason, despite already being signed in.

  • @mrnobody607
    @mrnobody607 2 роки тому

    Thank you so much ankit, can I also use this in the app development using angular and capacitorJS?

  • @EasyTechTutos
    @EasyTechTutos Рік тому +1

    Great work, thank you

  • @IsraelQuiroz
    @IsraelQuiroz 2 роки тому +1

    I believe when i was looking into this the angular social login was not working right in Angular 14, Google is also deprecating some older APIs and using a new library for auth and idk if Angular social login is as up to date, im not sure but i saw your video on the topic, and wanted to chime in

    • @FixItWithAnkit
      @FixItWithAnkit  2 роки тому

      This package works fine with the latest google update as well. I created this video after google had depricated the older api.

  • @varadsamudre1778
    @varadsamudre1778 Рік тому +6

    Error : 'asl-google-signin-button' is not a known element

  • @kanchankothar6411
    @kanchankothar6411 3 місяці тому

    I'm using angular18 and in this folder structure I don't have any modules, so where should I import providers

  • @audweb5193
    @audweb5193 Рік тому +1

    Thanks!! very usefull. I have a question : How can we make the authentication window open directly in our page rather than in a separate window?

  • @shazOfficialTech
    @shazOfficialTech Рік тому

    Why didn’t you get token_auth field and response field along with scopes?

  • @LostAmigos
    @LostAmigos Рік тому +1

    Great tutorial thanks a lot, but the music! Please turn it down.🙂

  • @56kgofawesome
    @56kgofawesome Рік тому

    I´m trying to implement this library with Angular 15, but I´m facing error with some methods called in a .mjs file, have you faced this? :(

  • @Ani-br5rf
    @Ani-br5rf 10 місяців тому

    I have used angular version 16 but i am unable to see the google icon.

  • @sainathjangewad6101
    @sainathjangewad6101 Рік тому +2

    Hi Sir. asl-google-signin-button is not visible . Wat could be the issue?

    • @FixItWithAnkit
      @FixItWithAnkit  Рік тому +1

      Check the console for errors.

    • @sainathjangewad6101
      @sainathjangewad6101 Рік тому

      Thanks for your response. There's no errors in the console . I inspected the button and saw that it is present in the dom. I wonder why it's not visible in the UI

  • @aviavinash2808
    @aviavinash2808 Рік тому

    Am using angular 11 application will it work??

  • @archithkulkarni
    @archithkulkarni 10 місяців тому

    For me its not working brother, Not even opening the google sign in page , im using Angular 17, Its working now. Thanks

  • @anilmekala6972
    @anilmekala6972 2 роки тому

    Please make a video on google signin with node/express

  • @ashiqkhan5339
    @ashiqkhan5339 2 роки тому

    what to do for angular version 9?

  • @AvinashKumar-ww9xz
    @AvinashKumar-ww9xz Рік тому +1

    tumhare source se client_id change krne ke baad The given origin is not allowed for the given client ID. ka error aa rha h kyu bro

    • @FixItWithAnkit
      @FixItWithAnkit  Рік тому

      You have to add origin of your app. If you are running on localhost then it will be localhost:port or if you have a domain, add your domain as origin while configuring the app.

  • @allisLiJell
    @allisLiJell 2 роки тому +1

    it works on angular 13 and 14

  • @nerdsuraj7253
    @nerdsuraj7253 Рік тому

    hey , bro im getting error and blank page after build my project in angular ? how to solve this one and in ng serve is working fine

  • @ДимаЕфремов-г6е
    @ДимаЕфремов-г6е Рік тому +1

    Thanks

  • @robert9826
    @robert9826 Рік тому

    'asl-google-signin-button' is not a known element. this is the error i get, i dont find a fix and i have SocialLoginModule imported in app module. help please

  • @vasanth2662
    @vasanth2662 Рік тому

    hi brother...it works fine in localhost...but when it come to the live server..it is not working..when i click the button, it just displays white box without any login informations...and in the console it says "m=credential_button_library:44 [GSI_LOGGER]: The given origin is not allowed for the given client ID."..help me to solve it

    • @FixItWithAnkit
      @FixItWithAnkit  Рік тому

      You have to add the production url of your application to the google app along with localhost:4200

    • @AvinashKumar-ww9xz
      @AvinashKumar-ww9xz Рік тому

      @@FixItWithAnkit where i add because bydefault its open in 4200 localhost

  • @ciciiig
    @ciciiig Рік тому

    Anyone found a way of preventing automatic sign in popup window from coming up on every page refresh?

    • @devghost46
      @devghost46 Рік тому

      I found it in the provider configured in your app.module below your id key add
      provider: new GoogleLoginProvider(
      environment.googleAuthLoginKey,
      {
      oneTapEnabled: false,
      }
      )

  • @codeak2206
    @codeak2206 Рік тому

    HI, I am using angula 16 and it's giving me error -
    src/app/app.component.html:3:1 - error NG8001: 'asl-google-signin-button' is not a known element:
    1. If 'asl-google-signin-button' is an Angular component, then verify that it is part of this module.

    • @FixItWithAnkit
      @FixItWithAnkit  Рік тому

      You must have forgotten to add it to your app.module

    • @vinodkus1
      @vinodkus1 Рік тому

      ​@@FixItWithAnkit I am still facing the same issue,
      My Google Console project is GoogleAuthAngularTest,
      so should I add
      ,
      but still I am getting error and I have done all things in app.module.ts

  • @tuannguyenanh4061
    @tuannguyenanh4061 Рік тому

    pls help me, 'asl-google-signin-button' is not a known element:

    • @sharif47
      @sharif47 7 місяців тому

      May need to import a module for this.

  • @reymonpachecomejia9071
    @reymonpachecomejia9071 2 роки тому

    It helps my project, it only reaches the part where the button appears, but when I press it, it does not show the Google accounts:(((

  • @ericjhuneespa3381
    @ericjhuneespa3381 2 роки тому +1

    how about signup ?

    • @FixItWithAnkit
      @FixItWithAnkit  2 роки тому

      Once you receive the details send the token to the backend and it will fetch the google account details using the token and create a user in you database.

  • @alhaq-v-quran
    @alhaq-v-quran Рік тому

    Angular 15 Error:
    asl-google-signin-button' is not a known element
    If 'asl-google-signin-button' is an Angular component, then verify that it is part of this module.

    • @FixItWithAnkit
      @FixItWithAnkit  Рік тому

      Add the module in you app.module.ts . I think you missed that step

    • @alhaq-v-quran
      @alhaq-v-quran Рік тому +1

      @@FixItWithAnkit Thanks for your quick reply,
      Everything was there, we need to import GoogleSigninButtonModule where we are using above directive/component

    • @mrx4256
      @mrx4256 Рік тому

      @@alhaq-v-quran Thank you so much

    • @AvinashKumar-ww9xz
      @AvinashKumar-ww9xz Рік тому

      @@alhaq-v-quran but what path should i mention ??

  • @dirk-piehl28
    @dirk-piehl28 Рік тому +1

    background music is distracting

  • @arundeveloper9041
    @arundeveloper9041 Рік тому

    hi thanks for the video
    this works only angular 14, verified, thanks