Google Identity Services Login with React (2023 React Google Login)

Поделиться
HTML-код
  • Опубликовано: 29 ноя 2024

Комментарии •

  • @thecyrusj13
    @thecyrusj13 Год назад +70

    Thanks!

    • @CooperCodes
      @CooperCodes  Год назад +22

      Yo this is my first super thanks! And the fact that its 10 bucks! You are way too kind, thank you so much :) this channel is genuinely a labor of love which I hope people see in the content, and I look forward to providing more in the future. This donation genuinely means so much to me. Thank you for your kindness.

    • @thecyrusj13
      @thecyrusj13 Год назад +9

      @@CooperCodes Oh yeah. You're welcome. Enough for a down payment on a six pack of beer right? Good luck with everything.

    • @CooperCodes
      @CooperCodes  Год назад +6

      Hahaha I'll use my down payment wisely, thank you for the kind words and support

  • @HemantDuttaHD
    @HemantDuttaHD 2 года назад +90

    You're a life saver mate! I was following a 5 hour long tutorial trying to make social media app using react and the guy was using the outdated method for this google oauth thing and I was losing my mind. Thank you so much! You've been a huge help!

    • @CooperCodes
      @CooperCodes  2 года назад +5

      You are absolutely welcome, glad to see my video got you on your way.

    • @weizhao7896
      @weizhao7896 2 года назад +1

      hey, have u successfully updated the google sign-in from the old version? I watched this video and come back try to fix the old one, but just get stuck T^T

    • @HemantDuttaHD
      @HemantDuttaHD 2 года назад +1

      @@weizhao7896 I followed this tutorial and things worked perfectly

    • @ayushnegi3610
      @ayushnegi3610 2 года назад +6

      From javascript mastery right?

    • @weizhao7896
      @weizhao7896 2 года назад +4

      @@ayushnegi3610 for me, yes. Lol

  • @luberalexanderechavarriabe4156
    @luberalexanderechavarriabe4156 Год назад +9

    Everyone does not have the skill to teach easily and clearly mate, but you do. You made it simple and straightforward, thanks a lot.
    I got the error, google doesn't exist, Just in case someone else gets the same, you have to add window. google.............(add window before google)

    • @Manja-rd3dr
      @Manja-rd3dr Год назад

      Thanks 😃

    • @DanielMShawn
      @DanielMShawn Год назад

      This saved me hours, thank you!

    • @solo-yl8uc
      @solo-yl8uc Год назад

      thanks, but I wonder why is he didn't get an google doesn't exist error...

    • @charleneleclerc9205
      @charleneleclerc9205 Год назад

      not working for me, i have always an error "window.google.account is undefined" and i don't understand why😢
      Sorry in advance for my english

    • @sagar_rasuri
      @sagar_rasuri 14 дней назад

      I just wanted to comment, am getting google doesn't exist error , and you fixed that
      😄 , if you are getting JWT as undefined remove the .credentials from response ex: console.log(response)

  • @Rohit-rb7qq
    @Rohit-rb7qq 12 дней назад

    great vid,coders like u are the underrated goats of youtube

  • @selim3291
    @selim3291 Год назад +1

    Thanks a lot! Not just for the Google Login, you are telling what are you doing step by step. This is so important to understand the logic of the code.

  • @pippinbloom
    @pippinbloom Год назад +9

    In viewing this, I didn't realize that the comment /* global google */ was actually necessary and not just a regular comment.Thank you so much!!

  • @aneeshmohanan5121
    @aneeshmohanan5121 7 месяцев назад +3

    10:49 The updated jwt decode code is
    import {jwtDecode} from 'jwt-decode';
    const userObject = jwtDecode(response.credential)
    console.log(userObject)
    posting this as I had error when executing the code in video. so thought might be helpful for anyone watching

  • @PersianShare
    @PersianShare Год назад +1

    JUST WOOOW, super clear, I WISH I COULD HAVE LIKE THIS VIDEO MORE THAN ONCE

    • @CooperCodes
      @CooperCodes  Год назад +2

      You can like this comment too! Thanks for watching hahaha

  • @selectablekitchen5315
    @selectablekitchen5315 2 года назад +1

    OMG THANK YOU!!! I went through hours of "beginner" guides before I could find tNice tutorials and at least make a simple soft... Only video I've

  • @thecyrusj13
    @thecyrusj13 Год назад +9

    Thanks so much dude. Google Technical Support couldn't even help me out as much as you did. The official Google docs on this didn't even mention React (as far as I know). The docs were frightening and I thought I would never figure this out with all the rabbit holes and snail trails. But anyway, I've watched 4 other videos on one-tap and yours is the first one that makes use of the sign in button if the user is not already logged in. One note I would add is that instead of using /* global google */ you can use window.google.accounts.id, etc. When I searched for "google one-tap" I didn't find your video. I had to search for "google signin". So if you added "one-tap" as a tag or search word it might increase your views (if you haven't already). It's nice that I didn't have to set up fake server and use the google-auth-library package for this to work also.

    • @CooperCodes
      @CooperCodes  Год назад +3

      Yeah hah when I made this video this stuff was super fresh. If I were to do the video over again I would definitely grabh google from the window object like you suggest, luckily its a one line fix but still wish it was in the video. Glad this was helpful! The Google documentation is surprisingly awful... considering its yah know... Google???

  • @oscargalvez7
    @oscargalvez7 2 года назад +12

    Amazing tutorial! I have watched plenty of tutorials overall and this is one of the easiest to understand and straight to the point. Also, I loved how I just did what you said and it worked the first time! That doesn't happen often. Keep it up 💯💯

    • @CooperCodes
      @CooperCodes  2 года назад +1

      Thanks so much for the comment! Glad the content was helpful :)

    • @oscargalvez7
      @oscargalvez7 2 года назад

      @@CooperCodes Sure it was, I already implemented it into my app. Great work!

  • @Bruno87198
    @Bruno87198 2 года назад +4

    Thanks for the video! The "/* global google */ explanation was really helpful!

    • @CooperCodes
      @CooperCodes  2 года назад +1

      Thank you, appreciate it! The global google is a little strange, but I found it to be a good solution when depending on scripts from your HTML like I discussed in the video. Appreciate the support

  • @frontend_ko
    @frontend_ko 8 месяцев назад +1

    thanks, man. it works perfectly. instruction is simple and concise

  • @bugraotken
    @bugraotken Год назад

    Among all the other videos related with React and Google auth, this is the far most helpful video. I can't thank you enough =))

  • @LuisPerez-MATB
    @LuisPerez-MATB Год назад +1

    Perfectly working October 2023, thanks for the tutorial! Very easy and understandable

    • @SurbhiYadav-i1z
      @SurbhiYadav-i1z Год назад

      hey i need help , idk there is an error jwt_decode is not a function
      can you help me with this?

    • @simransingh5496
      @simransingh5496 11 месяцев назад

      @@SurbhiYadav-i1z yeah i just ran into this, if you go into the node_modules and see, the current function is actually jwtDecode (without the underscore).

  • @user-fq7jf6cp9p
    @user-fq7jf6cp9p Год назад +1

    You've earned a sub and a like, you know how to program things really well and explain it to beginners so we dont scratch our heads until hair starts falling off. You showed me that I have a programming knowledge deficiency.

  • @fardinkashef3604
    @fardinkashef3604 Год назад +1

    That's how a tutorial should be. Great job. I really liked it.

  • @suryaafs
    @suryaafs Год назад

    I was looking for profile object and then it turn out to be decoded credentials. You're such a life saver, thank you so much! What an amazing tutorial

    • @CooperCodes
      @CooperCodes  Год назад

      You're very welcome, glad it helped you out especially in that specific scenario :)

  • @Morexod999
    @Morexod999 2 года назад +2

    It was helpful as hell, like a bless after hours spended with implicit google API docs

  • @merzeofficials7344
    @merzeofficials7344 Год назад

    just started learning react and came across your video. it took my entire day but worth it as its working same as he shown his video! but there were some code declaration errors which I faced. but still bundles of thanks

  • @shireensheikh505
    @shireensheikh505 10 месяцев назад

    2024 Jan- this works! Thanks man for making this video! Helped me loads

  • @yyk9881
    @yyk9881 2 года назад

    Easy to follow, voice is clear, explanations are perfect!!!!!!!

  • @lowmikow1099
    @lowmikow1099 7 месяцев назад

    Thank you som much for this tutorial! I've been looking for well-explained installation and usage of the new Google login!

  • @kushagra4401
    @kushagra4401 2 года назад +2

    Thank you so much for this. you are a life saver. i was having problems working with old oauth and spent hours on it. finally this worked

    • @CooperCodes
      @CooperCodes  2 года назад +1

      Glad to see it was helpful! Thank you for watching and supporting :)

    • @kushagra4401
      @kushagra4401 2 года назад

      @@CooperCodes Hey! is there any way we can customize the button rendered by it, like i want to align it center by default it is right aligned. i have tried css properties and different ways but couldn't figure it out

    • @rajatkushwaha279
      @rajatkushwaha279 2 года назад

      can u send the code?? It's too long to write :{

    • @kushagra4401
      @kushagra4401 2 года назад

      @@rajatkushwaha279
      const googleLogin = (res) => {
      const userCred = res.credential;
      const user = jwtDecode(userCred);
      // use the user data
      };
      useEffect(() => {
      /* global google */
      google.accounts.id.initialize({
      client_id: "your client id here",
      callback: googleLogin,
      });
      // mention id of btn, here i used googlelogin
      google.accounts.id.renderButton(document.getElementById("googleLogin"), { theme: "outline", size: "large", fullWidth: true });
      }, []);

    • @rajatkushwaha279
      @rajatkushwaha279 2 года назад +1

      @@kushagra4401 Thanks :)

  • @Patwal77
    @Patwal77 Год назад +2

    Thanks! way better than google documentation.

    • @CooperCodes
      @CooperCodes  Год назад

      Thank you so much for the donation, glad the video was helpful! Genuinely donations like this make my day and help me realize the impact my content has on others, so thank you.

  • @karengallardo4480
    @karengallardo4480 2 года назад

    I tNice tutorialnk you speak for a good portion of us.

  • @sangkyunkim-n5g
    @sangkyunkim-n5g 10 месяцев назад

    Awesome!! Clear and accurate explanation. It helps me a lot. Thank you so much!

  • @mohammadrahman8911
    @mohammadrahman8911 2 года назад +16

    Thank you for this! Qq...once the user is logged in...what's the recommended approach for backend API authorization? If I have an Express backend...can you send the Bearer token in the header?

    • @osrs-raph
      @osrs-raph Год назад

      You could use a library that allows you to set cookies and create a "token" cookie, then on the backend verify that token. I'm not sure about the backend details but I'm sure there is a function to validate it.

  • @mohamadelhamed1098
    @mohamadelhamed1098 2 года назад

    ITS WORKING! nice job dude

  • @kaaarkaaa3492
    @kaaarkaaa3492 2 года назад

    Agreed. All the others just turn your brain upside down. Nice tutorials is simple.

  • @faheemahmad5882
    @faheemahmad5882 Год назад

    You are so underrated 🙌 thanks

    • @CooperCodes
      @CooperCodes  Год назад

      Thanks for watching Faheem, appreciate yah :)

  • @getachewsharew5904
    @getachewsharew5904 2 года назад

    Life Saving.
    God bless you bro.

  • @ShakilKhatri1
    @ShakilKhatri1 Год назад

    This is exactly what I was looking for!
    Thanks!

  • @victorpaulguzmansoto5575
    @victorpaulguzmansoto5575 2 года назад

    Great, I'm lucky, it works great for me without errors

  • @knuckless__
    @knuckless__ Год назад +2

    somebody wrote on ts?
    do you know how solve the problem with that(type script can not find a google..)
    maybe later gonna be more problems witch you solved
    can you write here solve?

  • @섭지-t5b
    @섭지-t5b 2 года назад

    i really appreciate it! Exellent tutorial! from korea

  • @rahulprajapat1087
    @rahulprajapat1087 Год назад

    Great Work Bro , Appreciated !!

  • @condorkunka
    @condorkunka 9 месяцев назад

    Thank you, Cooper Code, for providing such a through explanation! It was incredibly helpful.

  • @auditrihumbas177
    @auditrihumbas177 2 года назад

    Nice tutorial Michael,

  • @KamTuPLAY
    @KamTuPLAY 2 года назад +1

    Thank you! I used old version of google sign in and it threw me an error. So I decided to use new method and found your video. Thanks again for helping)))

    • @CooperCodes
      @CooperCodes  2 года назад +1

      That is so great to hear that the video solved your problem! I made the video for people transitioning to the new login system, so glad to see it helped that case :)

  • @solo-yl8uc
    @solo-yl8uc Год назад +3

    does anyone get "Cross-Origin-Opener-Policy policy would block the window.postMessage call." error?

  • @aylanelson1012
    @aylanelson1012 Год назад +1

    Love the Tutorial:
    Is there any reason that the token might fail? And do you have suggested work arounds!
    Cross-Origin-Opener-Policy policy would block the window.postMessage call.

  • @bobross2404
    @bobross2404 Год назад

    Great video, helped me create a sequence diagram for explaining this process. Liked!

    • @CooperCodes
      @CooperCodes  Год назад

      Glad it was helpful :) thanks for watching

  • @Magnify.
    @Magnify. Год назад

    If the user logged in and then refreshed the page will it undo their log in and ask them to log in again?

  • @medweb8690
    @medweb8690 2 года назад +1

    Wow, this is a great tutorial. I'm having to force the npm install of react-google-login. Is there another updated package? I'm googling where to find such an update since the deprecation on July 29th. Thank you for taking the time to make this video for all to see.

  • @davidjunior390
    @davidjunior390 2 года назад +1

    Overall best tutorial on this... Many thanks!!

    • @CooperCodes
      @CooperCodes  2 года назад

      Thanks I really appreciate that!

  • @ajdin1250
    @ajdin1250 2 года назад +2

    Awesome explanations, thank you very much Sir.

  • @huzaifac137
    @huzaifac137 2 года назад +2

    Not working it's throwing error google is not defined in the browser and script link is throwing 404 aborted in console

  • @PiratesK1999
    @PiratesK1999 Год назад

    Great Video. But I have one question
    Can we add scopes in order to access google photos or google drive?
    I working on app that need both of these APIs.
    Thanks btw

  • @ranamdissa
    @ranamdissa 2 месяца назад

    Thanks a lot for this great tutorial. it solved me lots of trouble. Thanks

  • @elpeliculero5570
    @elpeliculero5570 2 года назад

    Thanks so much for your thoughtful and detailed videos! On to the soft!

  • @dudewithdonuts7639
    @dudewithdonuts7639 9 месяцев назад

    Great tutorial man

  • @LS_Roblox-DG
    @LS_Roblox-DG 2 года назад

    Thanks for sharing your valuable experience.

  • @anoopisaac
    @anoopisaac Год назад

    thanks for the amazing concise tutorial. I have doubt regarding what needs to be one token expires. Do I need to force user login again?

  • @MatheusFerreira-ut5tc
    @MatheusFerreira-ut5tc 2 года назад

    Thank you for saving my life in my job lol

  • @ciyaarahadunidaoffical5474
    @ciyaarahadunidaoffical5474 2 года назад

    in the details. when you get stuck, roll back to the beginning and start over. The other weay is to focus entirely on one set of commands

  • @Chase20224
    @Chase20224 2 года назад

    Thanks! Your video content is the safest and most useful

    • @CooperCodes
      @CooperCodes  2 года назад

      Thank you! Appreciate the comment and glad it was useful

  • @davidharmeyer3093
    @davidharmeyer3093 2 года назад +2

    This is insanely helpful. Thanks so much.

  • @abdirisaqqasim3726
    @abdirisaqqasim3726 Год назад

    Your video was extremely helpful and easy to follow. It saved me a lot of trouble. I would be grateful if you could make another video on how to redirect pages after login. Thank you for your assistance.

  • @foreigner268
    @foreigner268 2 года назад +2

    Thanks for the video. Is there a way to format the Google signin button to use Material UI? I want it to use my theming.

  • @kanhatiwari7150
    @kanhatiwari7150 2 года назад +2

    why i am getting error every-time that "google is not defined" although my app is working fine but error message show every-time and then i have to close it manually any solution to this issue?

  • @carmelchurchsatchiyapuram2292
    @carmelchurchsatchiyapuram2292 2 года назад

    you are literally the best

  • @MadhavMishra-is9gb
    @MadhavMishra-is9gb Год назад

    Can you also explain in brief that how can we then use the googel spreadsheet api's ? Do I need to use gapi ?

  • @mahdirafi6537
    @mahdirafi6537 4 месяца назад

    Very helpful... Thanks a lot

  • @SubashBalasubramanianLatentVie
    @SubashBalasubramanianLatentVie 4 месяца назад

    Hello,
    index.html Using both async and defer together is technically allowed, but it does not follow the intended usage of these attributes and can cause confusion. According to the HTML specification, if both attributes are present, the async attribute takes precedence, and the defer attribute is ignore.

  • @realhavir1295
    @realhavir1295 2 года назад

    Life saving my man, life saving!

  • @mohsenahmadi4851
    @mohsenahmadi4851 2 года назад +2

    Thanks for such a great tutorial. It was really helpful!👍🏻💯

    • @CooperCodes
      @CooperCodes  2 года назад

      Thank you so much for the comment! Appreciate the support

  • @onegentig
    @onegentig Год назад +1

    But what if I need some restricted scopes?

  • @johnfox4914
    @johnfox4914 2 года назад +1

    Well done, thank you for this tutorial.

  • @SuperChrisssssssss
    @SuperChrisssssssss 7 месяцев назад +1

    jwt-decode no longer has a default export. here's the updated import code:
    import { jwtDecode } from 'jwt-decode';
    import './App.css';
    function App() {
    function handleCallbackResponse(response) {
    console.log("Encoded JWT ID token: " + response.credential);
    var userObject = jwtDecode(response.credential);
    console.log(userObject);

  • @instaboy007
    @instaboy007 2 года назад +1

    I implemented the login button it works fine but the problem is that I cannot style/customize the google button. I wanted to make the button responsive how can I do that ?. I tried using CSS Bootstrap nothing worked 😭

  • @Quo777
    @Quo777 10 месяцев назад

    Thanks a lot, you've save my day!

  • @williamcuervo4252
    @williamcuervo4252 2 года назад

    up to now. Your soft is great too!

  • @mtejera
    @mtejera Год назад

    Thank you so much! Amazing and straightforward tutorial. I appreciate it a lot!

    • @CooperCodes
      @CooperCodes  Год назад +1

      Miguel thank you so much for watching and leaving a comment. I appreciate you back :)

    • @durgaprasadthandra4066
      @durgaprasadthandra4066 Год назад

      Can any one help me I got "Google is not defined" error

  • @goksuokar288
    @goksuokar288 2 года назад +1

    Hi!! I'm still getting a google not defined error during mounting, how do you fix that??? I put the script in and you can access google object from the console but react will throw an error while rendering (not compiling, I disabled the linter for that) and will not render anything.

  • @kuentasapp1199
    @kuentasapp1199 2 года назад +6

    Great video! just one question, how can I use the token to avoid the login every time the page gets refreshed?

    • @PardoLiat
      @PardoLiat 2 года назад

      I think I have the same problem, when refreshing it asks me to login again. Did you find any solution for that?

    • @sahilverma_dev
      @sahilverma_dev 2 года назад +2

      for this you have to store the user data in localstorage and if there is no data in localstorage only then make a login call

    • @sahilverma_dev
      @sahilverma_dev 2 года назад

      @Sai karthik Varanasi you can find detailed articles on the web.

    • @sahilverma_dev
      @sahilverma_dev 2 года назад

      @Sai karthik Varanasi basically when user gets logged in google returns a object. just store that object into the localstoage and for next write the code in such way that first it'll look to the localstorage for the user data if its null or not exist login the user and if user data is present in the localstorage then no need to login the user.

    • @kushagra4401
      @kushagra4401 2 года назад +1

      @Sai karthik Varanasi you have to store data in localstorage. you can do it by localStorage.setItem() function it takes two parameters first, what you want to name it lets say 'profile' and in second you have to pass data in string format (JSON.stringify). now when you want to access the data on refresh you can get data in useEffect (after refresh) using localStorage.getItem('profile') you have to pass the name you chose like i took profile for example.

  • @bgovindnaren7405
    @bgovindnaren7405 Месяц назад

    Awesome video thanks!

  • @billschnoebelen40
    @billschnoebelen40 2 года назад

    Thank you, thank you, thank you!!! I have been trying to get an old program running for two days. None of my old stuff worked. All the tutorials I tryed did not work. Nothing gave me the token!

    • @CooperCodes
      @CooperCodes  2 года назад

      Glad the tutorials could help, thanks so much for commenting! :)

  • @underworld-of-gaming
    @underworld-of-gaming Год назад +1

    How to display google sign up button instead of google sign in button

  • @romuloneedy
    @romuloneedy Год назад

    Thanks for the video.
    There is a way to change this way, to save a token.
    This would be to make future integrations, even if the user is not logged in and within the application?
    For example, creating events in Google Calendar.

  • @joshuajaydan
    @joshuajaydan 2 года назад +1

    How can you use returned token and ask for access to Google API's like Calendar etc?

  • @amanrawat9622
    @amanrawat9622 2 года назад

    Thanks works perfectly 🎉

  • @internetdrew
    @internetdrew 2 года назад

    A fantastic fix I thought was broken. Make sure to check your extensions for anything that may be aggressively blocking. It wouldn't let me get anything from the gsi link. Disabled the extension: problem solved.

  • @lucassu9099
    @lucassu9099 6 месяцев назад

    How can this apply to multipage? I found myself auto signed out when switching pages..

  • @baihu-hc3xw
    @baihu-hc3xw 11 месяцев назад

    If someone else's program is connected to Google login, how do I get this "jwt token"? Are there any corresponding videos or articles?

  • @learnerboy4405
    @learnerboy4405 Год назад +1

    I am getting this error : "[GSI_LOGGER]: The given origin is not allowed for the given client ID.
    _.z @ m=credential_button_library:44" , But I added exactly what you instructed can you help pls?

  • @hassaanhameed9624
    @hassaanhameed9624 2 года назад

    Good tutorial, Thanks a lot, It was simple and concise.

  • @mymysticvoyages
    @mymysticvoyages 7 месяцев назад

    You are a 10 on 10

  • @felixndifon8511
    @felixndifon8511 2 года назад +1

    Sir, i kept on having this error "The given origin is not allowed for the given client ID.", how can i fix this?

  • @fygure8756
    @fygure8756 10 месяцев назад

    When you deploy, do you change the localhost and localhost:3000 to your application's endpoint? also would I need port :3000 ?I see we need both localhost and localhost:3000 that is why I ask

  • @daniyaldk946
    @daniyaldk946 2 года назад

    All of my computers got the softwares here. I first install them on virtual environnt to make sure they're not malware. So I can assure

  • @temiemmanuel3580
    @temiemmanuel3580 2 года назад

    Awesome! Learnt a few tricks from this.

  • @walterportillo4221
    @walterportillo4221 2 года назад

    onto the software. I'd like to make soft from my ukulele, keyboard, etc., but don't know how to transfer. Do I need a microphone or

  • @juanpedro_mario
    @juanpedro_mario Год назад

    Thanks a lot for this video, super helpful.
    Please how do I style the button? Too small for where I want to use it

  • @airplaneCrashe
    @airplaneCrashe 2 года назад

    Where is the link on gihub? It doesn't work and I don't know if mistake is in my code or it's something else. I checked everything. If you give a tutorial you can give the link on the project as well(

  • @levankantara
    @levankantara 2 года назад +3

    Thank you! Works fine in Localhost, but i want to make it public. now I get error '[GSI_LOGGER]: The given origin is not allowed for the given client ID.' I can only log in with an Email that I manually added while in Testing stage.
    What extra steps do I need to make it useable " IN Production"?

    • @romanhrytsyshyn1966
      @romanhrytsyshyn1966 2 года назад

      Did you find out the answer?

    • @levankantara
      @levankantara 2 года назад

      @@romanhrytsyshyn1966 If i remember correctly, problem was in Javascript Origins. I forgot to include my website URL with 'www.' Make sure you include both with and without WWW

    • @romanhrytsyshyn1966
      @romanhrytsyshyn1966 2 года назад

      @@levankantara Well, as I understood, I have another problem. I deployed my app using Github Pages and this auth doesn’t work because Github Pages works only with static data.

    • @levankantara
      @levankantara 2 года назад

      @@romanhrytsyshyn1966 Yea, i hear people complain about github pages a lot. I used firebase for hosting as well

    • @levankantara
      @levankantara 2 года назад

      it is very easy to deploy

  • @themacosguy
    @themacosguy Год назад

    ​ @CooperCodes All of this work fine. But dont know while hosting this code it says CORS error. I am using CORS package as well and it doesnt even show up on local server though I dont use any CORS blocking extension. I have been mad as all of my work is based on google login. Please help

  • @JackKrivan
    @JackKrivan 2 года назад

    Your a life saver tipo thank you for this I've been struggling with this for weeks now thank you

    • @CooperCodes
      @CooperCodes  2 года назад

      Glad I could help, thanks for watching!

    • @durgaprasadthandra4066
      @durgaprasadthandra4066 Год назад

      Bro I am struggling Can any one help me I got "Google is not defined" error

    • @JackKrivan
      @JackKrivan Год назад

      @@durgaprasadthandra4066 nah for some reason this stopped working for me

  • @simransingh5496
    @simransingh5496 11 месяцев назад

    My sign-in only works if I have the specific port number in the OAuth Client console... any fix for this? I have localhost and localhost:3000 in there, but it keeps saying that my origin isn't registered with teh OAuth client. For reference, I'm using vite so the default is localhost:5173 and upward. Any fix for this?

  • @caonguyenle7038
    @caonguyenle7038 Год назад

    In my case i wanna create signIn div in login component that is loaded after useEffect in App.js. I get this errror [GSI_LOGGER]: Failed to render button because there is no parent or options set and button not showing. Do u know how to fix it?