https://github.com/piraces/googleonetapsample
Frameworkless sample for Google One Tap User Experience
https://github.com/piraces/googleonetapsample
google google-identity google-one-tap sample-code
Last synced: 4 months ago
JSON representation
Frameworkless sample for Google One Tap User Experience
- Host: GitHub
- URL: https://github.com/piraces/googleonetapsample
- Owner: piraces
- License: mit
- Created: 2021-12-24T11:35:52.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-28T19:23:46.000Z (about 4 years ago)
- Last Synced: 2025-02-25T20:43:31.155Z (11 months ago)
- Topics: google, google-identity, google-one-tap, sample-code
- Language: HTML
- Homepage: https://googleonetap.developer.li/
- Size: 191 KB
- Stars: 15
- Watchers: 2
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Google One Tap Sample
Basic Frameworkless sample for Google One Tap User Experience in a web page.

[**Live demo**](https://googleonetap.developer.li/)
# How to use it
To proceed with testing the authentication flow, follow the prompt shown in the top right corner of the page.
The Google One Tap flow is configured to automatically show the prompt in the right top corner, auto-select the current Google Account if you are already logged in with Google and proceed with the authentication flow automatically if you have done it before and your Google account allows it.
If no prompt appears you just can click the button "Sign in with Google" to start the authentication flow.
# Requested scopes
The following info is being requested:
|API|Scope|Description|
|--- |--- |--- |
|-|.../auth/userinfo.email|See your primary Google Account email address|
|-|.../auth/userinfo.profile|See your personal info, including any personal info you've made publicly available|
|-|openid|Associate you with your personal info on Google|
# Important notes
- **The authentication is done in a secure way using HTTPS** and **the data requested to Google by your consent does not leave the browser or saved anywhere.**
- You can inspect the source code or [reach me](mailto:raul@piraces.dev) for more information.
- **This web page is for educational and testing purposes only.**
# License
This project is licensed under the [MIT License](LICENSE).