I wanted to ask if anyone registered with google on our website so is there any condition like user can access for only 1 month later access token will be expired by google? or user has lifetime access kindly help me on this
I Have problem with this code because when im tried to test my web app but there is an error showing "Trying to get property 'id' of non-object" and the error from this code -> Auth::loginUsingId($saveUser->id), help sir
Hello dear I have a question I hope you can help me to find a solution for this question : Already we have a list of users in our database with this field: [name, Gmail]. in your tutorial, if a user doesn't have an account can register and log in at the same time to a website but in my case I want if already they have a registered account[Gmail] in the database then the users can log in to the website using Google authentication.
Hi Hamid, You can update the google callback function and use it as you want, It actually totally depend on how you want to use the functionality, once you are inside a callback function you can use it according to your requirements. Hope this helps. Thanks
Hello There, You can use either Laravel valet or Use NgRock To get Redirect URL. And Please Update That URL in .env FILE. To read more about NgRock you can look at ngrok.com/docs Thanks
ok great it works but that's because you are a seasoned developer but for new devs? I think you should also show how to get the google settings.
Sure Will Make Video on the same soon.
Code Working Thanks amazing. Thank You Sir
Glad to hear that
But how can I do this using API?
I wanted to ask if anyone registered with google on our website so is there any condition like user can access for only 1 month later access token will be expired by google? or user has lifetime access kindly help me on this
Hey
Google Token are valid for 7 days in general, But you can get refresh token if token is expired.
Hope this help.
Thanks
Hi can i also sign up with this code using Gmail ?
or is it only for login
Yes you can signup as well.
Thanks ☺
I Have problem with this code because when im tried to test my web app but there is an error showing "Trying to get property 'id' of non-object" and the error from this code -> Auth::loginUsingId($saveUser->id), help sir
You need to look into variable holding save user seems like there might be some error
Thanks amazing.
sir
once we logged in , then accounts and not listing.. how rewrite the code to list and choose the account for each loggin
Hey There, For that you need to query for all accounts and print them on blade view file.
Thanks
Hello dear
I have a question I hope you can help me to find a solution for this question :
Already we have a list of users in our database with this field: [name, Gmail].
in your tutorial, if a user doesn't have an account can register and log in at the same time to a website but in my case I want if already they have a registered account[Gmail] in the database then the users can log in to the website using Google authentication.
Hi Hamid,
You can update the google callback function and use it as you want,
It actually totally depend on how you want to use the functionality, once you are inside a callback function you can use it according to your requirements.
Hope this helps.
Thanks
@@TechToolIndia Thank you dear
Hello, can you explain about ngrok? How do I get that redirect?
Hello There,
You can use either Laravel valet or Use NgRock To get Redirect URL.
And Please Update That URL in .env FILE.
To read more about NgRock you can look at ngrok.com/docs
Thanks
U already have that template, where can i get it?
Hi Riszky,
You can get it from github.com/TechTool-India/ExampleProject/tree/social-login.
Thanks
Bro i need your help i just sent you an email please
Hi Please reach out to info@sentriqoitsolutions.com .
Thanks