In an SPA (react/ angular )Api calls go directly from browser, does it mean the the app cannot store variables that allows it third party oAuth providers like Google.

What works vs. what doesn’t

Token storage: do it safely

Backend-for-Frontend (BFF) — recommendation for production

Spin up a tiny backend (Lambda + API Gateway works great) on your domain.

Pros: hardest to steal tokens, cleaner CORS, easier policy/rotation.

Cons: you run a small backend.

So, can you “store variables for OAuth”?

Practical checklist (React + S3/CloudFront)