handle oauth in front end #906
-
Hi everyone :) I followed the guide in Oauth2. thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
Hi @wkyltlab! This part is up-to-you to determine and implement :) After a successful OAuth2 authentication, you'll have the token available in the My suggestion is to keep it the OAuth token safe on the backend side and implement API routes in your application that will do what you need: call the relevant Google API, process the information and return it in your response. |
Beta Was this translation helpful? Give feedback.
-
@wkyltlab and @frankie567 in my case I have some doubts how to handle the front/back flow too. I want to put a button in the front which would go to the back (in an endpoint like What I'm struggling is: It is possible to create an endpoint or modify the Thanks in advance |
Beta Was this translation helpful? Give feedback.
Hi @wkyltlab!
This part is up-to-you to determine and implement :) After a successful OAuth2 authentication, you'll have the token available in the
oauth_accounts
table. You can easily retrieve it given a user.My suggestion is to keep it the OAuth token safe on the backend side and implement API routes in your application that will do what you need: call the relevant Google API, process the information and return it in your response.