square / square-nodejs-sdk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

General question about usage in react-native

theahmadzai opened this issue · comments

I'm planning to use this lib directly in react native without a server of course server for the OAuth and onboarding part but once have the token planning to use it directly from the client-side do you guys recommend this approach and what are the pros and cons of using like that keeping the caching and rate limiting from the square side in mind.

Thanks

hi @theahmadzai,

Can you share more about which APIs your app would be using? As for storing the User's access token on the device, we would recommend that your App use the PKCE Oauth flow which we recently released support for.

Not using this lib on the frontend anymore