Introduction
Authentication is an essential part of most applications. Implementing authentication in your application depends on requir...
For further actions, you may consider blocking this person and/or reporting abuse
@chukwutosin_ At this point how can I handle
state
?I need to pass a custom parameter from the frontend, and get this parameter on backend redirection.
This is to save extra on my DB apart of the data google give me.
Thank you so much!
I found a solution:
In file:
google.strategy.ts
add this function.In file:
google.strategy.ts
update constructor.In file:
google.strategy.ts
update validate function.Cool
nice
Well written @chukwutosin A great article consist well research and this is actually amazing!
Thank you! I appreeciate the feedback.
How to integrate with an angular app ? Just call the route in nestjs ?
yes. just call the endpoints like you normally would in a frontend app
This was helpful. Thanks!
I'm glad you found it helpful. Thanks!
Hi @chukwutosin_ ,
Thank you very much for your amazing How To!
You're welcome!
Thank you for this amazing tutorial! Can confirm that everything is up to date.
There might be upgrades in the versions of the several tools used, but it should still work just fine
juss started learning nestJS, nice article
Oh, that's cool! I'm glad you found it helpful
When running locally, the first route does not take me to the google authentication page, is that how it's supposed to be on localhost?
No, you probably missed a step. What route did you visit?
I created a route path in my user auth controller, localhost:3000//auth/google
Does it have to be just localhost:3000/
following the article. you just need to visit: localhost:3000/auth
it works, It did not work previously because I tried to access it from my swagger documentation
I have a question if you don't mind, In a case where you do not need a refreshToken, what other option can be passed to super() aside accessType?
Any other Google specific options can be passed there. Every other option can be found on Google's documentation which I linked at the end of the article
Thanks
Thanks
Thanks, I'll try implement this in my next project
Great! Thanks
Well done, bro
Please @chukwutosin_ is this going to save to the database?
There's no database setup here.