function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
bharath kumar 52bharath kumar 52 

How to get a Oauth token dynamically without any user interaction?

Hi All,

I am planning to integrate salesforce with a google api. But, the challenge here is that i have a lot of users and  each user has a different set of data.
In order to make sure that the user data flows from google to salesforce i used their api and REST callouts . But, the catch here is that i am currently hardcoding the token which i get from oauthplayground. But in realtime scenario when i click on a button i need the latest dataa to be shown from google to salesforce can someonen please help me on how i can get the token of each user dynamically and notjust hardcoding a single token?