Hello sir first of all thank you for this great project😊😊 I want to master MERN Could you please suggest me how to do that? Have you learnt from documentation,udemy videos,youtube, internship, experiance or anything else on starting...?
This is just if google blocks one tap login prompt when the user clicks on x button to close it. Because google considers that the prompt is annoying the user, so user removed it. You can reset the state by deleting this cookie or change its value to 0, so it will work again
Thanks for creating such an excellent tutorial videos. Very detailed, without bugs and easy to follow. Great job! One question: You are not saving the user, who has signed with Google One Tap login, in the mongodb database . Any particular reason for leaving that out? Any suggestion on how to be able to do that as I need to save all users in the database for my application.
You can save it in your database if you want to use user's email for newsletters from example. But you have to flag it in your table (add new field to recognise that this is google user)
bro I was making React Todo app with firebase firestore only frontend. When I refresh or application startup these data need to wait to display for 1.3second , It is bad UX. How can I fix it. Do I need backend?
Hey Raba, We didn't use Redux here, we just used React Context and it is very easy. You can watch the whole playlist on here to understand how we started the context: ruclips.net/video/ANZNMaBODDY/видео.html and you can find the source code here: github.com/codelikepro22/place-to-stay/tree/part3
thank you sir your tutorial are awesome but i have one problem after sign in with google button i didn't get object at console plz help me to solve out this problem.
Hey Christian, I really don't understand what you mean but we have a project on this channel for only authentication with firebase on this playlist link: ruclips.net/video/74rGC1e77tw/видео.html
of course you can. Just remove the button for google login and you will be good to go. The whole code of the project is on this repo on github: github.com/codelikepro22/place-to-stay
this is so powerful!! you are the smartest ever. THANK YOU SO MUCH SIR! hope you can continue and create a video where this is uploaded via HEROKU maybe?
Thanks a lot. And we deployed it to Heroku and Netlify on this video: ruclips.net/video/2nfaSvzhU2w/видео.html and the whole project is on this playlist: ruclips.net/video/ANZNMaBODDY/видео.html
Im at about 37 minutes in and I am trying to verify the auth works from the server, and I keep getting this error coming from the client.verifyIdToken() Error: Token used too late, 1658336008.89 > 1658328626: I'm assuming its a timing issue, or an expired token / something weird with the date going on. Gonna take a break and try to fix it another time, but in the meantime if anyone knows anything or had a similar issue let me know! Thanks!
console log your token in client side and in server side and compare them if they are the same. You may send an old one because maybe you don't update it in client side before you send the new one to the server
@@CodeLikePro22 1658336008.89 > 1658328626 these are the two values, not sure how to update it on the client side before you send one to the server. The login works fine and I have a current user with a token, but when you decode the token and find the expiration time it is just at a different time than the one the server compares it to, just going to continue for now.
The Time Zones must be off because I had a lot of hope for the useCheckToken but now it logs me out as soon as i logged in it seems as though my token is just perma expired for now
Thank you so much sir
Super❤
Hello sir first of all thank you for this great project😊😊
I want to master MERN
Could you please suggest me how to do that?
Have you learnt from documentation,udemy videos,youtube, internship, experiance or anything else on starting...?
What do we do with the g_state cookie google gives in sign in/out?
This is just if google blocks one tap login prompt when the user clicks on x button to close it. Because google considers that the prompt is annoying the user, so user removed it. You can reset the state by deleting this cookie or change its value to 0, so it will work again
Thanks for creating such an excellent tutorial videos. Very detailed, without bugs and easy to follow. Great job!
One question:
You are not saving the user, who has signed with Google One Tap login, in the mongodb database . Any particular reason for leaving that out? Any suggestion on how to be able to do that as I need to save all users in the database for my application.
You can save it in your database if you want to use user's email for newsletters from example. But you have to flag it in your table (add new field to recognise that this is google user)
@@CodeLikePro22 Okay. Thanks for the clarification.
bro I was making React Todo app with firebase firestore only frontend. When I refresh or application startup these data need to wait to display for 1.3second , It is bad UX. How can I fix it. Do I need backend?
the whole UI is ready but user's data didn't , User have to wait to see his data for 1.3s
@@ThanHtutZaw3 Can I see your code? Is it available on github or some place that I can see it?
@@CodeLikePro22 bro you get my link ?
@@ThanHtutZaw3 no sorry. Where did you put it?
Would like to find one video like this but without using redux. Also, where's the source code bro? Thanks.
Hey Raba,
We didn't use Redux here, we just used React Context and it is very easy. You can watch the whole playlist on here to understand how we started the context:
ruclips.net/video/ANZNMaBODDY/видео.html
and you can find the source code here:
github.com/codelikepro22/place-to-stay/tree/part3
thank you sir your tutorial are awesome but i have one problem after sign in with google button i didn't get object at console plz help me to solve out this problem.
Can I see your code?
@@CodeLikePro22 yup sure sir how can I send you my code
@@rajilaziz8380 codelikepro22@gmail.com
@@CodeLikePro22 ok
when is the next video coming?
I am so sorry to be late. Sometimes I am so busy with work, but I am gonna try to add it today or tomorrow
can you add for firebase console ?
Hey Christian,
I really don't understand what you mean but we have a project on this channel for only authentication with firebase on this playlist link:
ruclips.net/video/74rGC1e77tw/видео.html
I have no sign in btn . Only prompt and how can I sign out
You need to add sign out anyway, so the user can click on it to sign him out
@@CodeLikePro22 I already removed local storage for sign out but cannot login again because g State(cookie) still there .
@@ThanHtutZaw3 try to use their way of signing out:
developers.google.com/identity/gsi/web/guides/automatic-sign-in-sign-out
Can we skip the one tap google authentication? Coz it needs CC , i don't have any
of course you can. Just remove the button for google login and you will be good to go. The whole code of the project is on this repo on github:
github.com/codelikepro22/place-to-stay
Much appreciated it mate 👍
@@CodeLikePro22 bro i've tried to stick to the videos by ignoring this GOOGLE_CLIENT_ID, how am i supposed to be authorized without these ?
@@lalagisaa Use only your custom token (authentication by email and password) it is in the next video:
ruclips.net/video/gE0I8Pe0JQ4/видео.html
Ah got it, i'll catch up then
Unexpected token '
PLease help anyone
I will check your repo later and see if I can help with the error
Hi is this solved? Im having the same error
@@spookyofficer1417 Yeah Bruh
The complete Project is in my github .
I can't find my thread anymore?
you commented on another video if that what you meant. I think this video:
ruclips.net/video/gE0I8Pe0JQ4/видео.html&lc=Ugx9x5ALt2AiACbAFnt4AaABAg
Bro can u please reply to me
this is so powerful!! you are the smartest ever. THANK YOU SO MUCH SIR! hope you can continue and create a video where this is uploaded via HEROKU maybe?
Thanks a lot. And we deployed it to Heroku and Netlify on this video:
ruclips.net/video/2nfaSvzhU2w/видео.html
and the whole project is on this playlist:
ruclips.net/video/ANZNMaBODDY/видео.html
Im at about 37 minutes in and I am trying to verify the auth works from the server, and I keep getting this error coming from the client.verifyIdToken()
Error: Token used too late, 1658336008.89 > 1658328626:
I'm assuming its a timing issue, or an expired token / something weird with the date going on.
Gonna take a break and try to fix it another time, but in the meantime if anyone knows anything or had a similar issue let me know!
Thanks!
console log your token in client side and in server side and compare them if they are the same. You may send an old one because maybe you don't update it in client side before you send the new one to the server
@@CodeLikePro22 1658336008.89 > 1658328626 these are the two values, not sure how to update it on the client side before you send one to the server. The login works fine and I have a current user with a token, but when you decode the token and find the expiration time it is just at a different time than the one the server compares it to, just going to continue for now.
The Time Zones must be off because I had a lot of hope for the useCheckToken but now it logs me out as soon as i logged in it seems as though my token is just perma expired for now
@@timobrien4190 The values you mentioned are the expiry dates not the tokens. Do you have your code on github so I can have a look
The file on github is Server instead of server but that is not the case when im running it locally