https://github.com/jgunnink/vite-react-oauth-demo
This demo repo uses Vite and React to demo signing in with Google (or any other Oauth provider) with the Cloud Identity platform.
https://github.com/jgunnink/vite-react-oauth-demo
google-cloud identity-platform oauth react vite
Last synced: 5 months ago
JSON representation
This demo repo uses Vite and React to demo signing in with Google (or any other Oauth provider) with the Cloud Identity platform.
- Host: GitHub
- URL: https://github.com/jgunnink/vite-react-oauth-demo
- Owner: jgunnink
- License: mit
- Created: 2022-12-31T06:44:53.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-18T02:59:53.000Z (almost 2 years ago)
- Last Synced: 2024-09-18T06:21:26.825Z (almost 2 years ago)
- Topics: google-cloud, identity-platform, oauth, react, vite
- Language: TypeScript
- Homepage:
- Size: 244 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Vite, React and OAuth with Google Cloud Identity Platform
This repo is designed to be used as a demo or template to build React applications with Vite, facilitating easy sign in with the
[Google Cloud Identity Platform](https://cloud.google.com/identity-platform)
In short, using the Firebase SDK, you can provide a `apiKey` and `authDomain` to the config (available via the GCP console identity
platform) page, and that's pretty much it. It's all wired up.
If the user is signed in, the app will display their name. If not it will display an error if there is one, or the sign in button to enable
the user to sign in.
PRs, issues, questions, praise, criticism is all welcome.
Enjoy.