SlideShare una empresa de Scribd logo
1 de 30
One Tap Google Login with
ReactJs
A guide by Sufalam Technologies Pvt Ltd
Pradip Vadher
Sr. Reactjs Developer
www.sufalamtech.com
Why to choose One Tap Google Login?
● Sign-in with Google One Tap uses secure tokens, rather than login
credentials, to sign users to the web application
● An easy sign-in process is meant to help users reduce the pressure of
picking convenience over security when deciding on yet another password
for a web app
www.sufalamtech.com
Why to choose One Tap Google Login?
● Users can sign in using just one tap, without having to remember their
credentials or create a password
● Easy flow increased the sign-in with existing user and sign-up for new
users
www.sufalamtech.com
Why to choose One Tap Google Login?
● Users can sign in or sign up anywhere in the web application, It also works
after session expired
● Manual sign-up or switching accounts occur only after the user has first
signed out of your site.
www.sufalamtech.com
Why to choose One Tap Google Login?
● One Tap Google Login also works with “Sign-in with Google” Button
www.sufalamtech.com
How to implements One Tap
in ReactJs?
www.sufalamtech.com
Implement One Tap Login
Step 1
Get Google API Client Id
Step 2
Load the One-tap
Google library
Step 3
Initialize One tap to
display Sign in Popup
www.sufalamtech.com
1. Get Your Google API Client Id From
Google Console
To use Google’s one-tap sign-in flows, you need to set up your Google API
client ID. If you don’t have Google Client Id then you need to create a new
one. Use the below details to create a new client id.
https://console.cloud.google.com/apis/credentials
www.sufalamtech.com
www.sufalamtech.com
2. Load Google Javascript Client Library
The JavaScript client library for Sign In With Google and Google One Tap is
designed to be compatible with most common browsers and platforms.
<script src="https://accounts.google.com/gsi/client" async defer />
Due to security risks the JavaScript client library is only supported on the
latest two versions of each browser
www.sufalamtech.com
3. Initialize One tap to display Sign in Popup
We have to initialize the client id to the google account script that loaded in
system that we checked in the last step.
After that we have to use prompt method to display the popup of one tap
google login
www.sufalamtech.com
3. Initialize One tap to display Sign in Popup
www.sufalamtech.com
Browser Support
www.sufalamtech.com
Browser and platform combinations
www.sufalamtech.com
Example
www.sufalamtech.com
1. Load the Javascript Client Library
www.sufalamtech.com
www.sufalamtech.com
2. Add Callback method to google api
initialize block
www.sufalamtech.com
www.sufalamtech.com
3. Add Decode Method to find the user
details from the callback response
www.sufalamtech.com
www.sufalamtech.com
Browser Output
www.sufalamtech.com
www.sufalamtech.com
Browser Output
Without Existing Google Login
www.sufalamtech.com
www.sufalamtech.com
Security Concerns While
Implementing One Tap
www.sufalamtech.com
1. Google One Tap can only be displayed in
HTTPS domains.
www.sufalamtech.com
2. Due to security risks the JavaScript client
library is only supported on the latest two
versions of each browser.
3.Do not cover Google One Tap by any other
content.
www.sufalamtech.com
4. One Tap Google Login is NOT configured to
work on Private Window.
Checkout complete example on Git
Hub
https://github.com/Sufalam-
Technologies/one_tap_google_login
www.sufalamtech.com
Thank You
Follow Us On
www.sufalamtech.com

Más contenido relacionado

La actualidad más candente

Introduction to React Native Workshop
Introduction to React Native WorkshopIntroduction to React Native Workshop
Introduction to React Native WorkshopIgnacio Martín
 
IPSec | Computer Network
IPSec | Computer NetworkIPSec | Computer Network
IPSec | Computer Networkshubham ghimire
 
Selenium Presentation at Engineering Colleges
Selenium Presentation at Engineering CollegesSelenium Presentation at Engineering Colleges
Selenium Presentation at Engineering CollegesVijay Rangaiah
 
Android studio installation
Android studio installationAndroid studio installation
Android studio installationPoojaBele1
 
Introduction to Web Components
Introduction to Web ComponentsIntroduction to Web Components
Introduction to Web ComponentsFu Cheng
 
Angular 8
Angular 8 Angular 8
Angular 8 Sunil OS
 
Bootstrap PPT by Mukesh
Bootstrap PPT by MukeshBootstrap PPT by Mukesh
Bootstrap PPT by MukeshMukesh Kumar
 
Attacking thru HTTP Host header
Attacking thru HTTP Host headerAttacking thru HTTP Host header
Attacking thru HTTP Host headerSergey Belov
 
User Authentication Overview
User Authentication OverviewUser Authentication Overview
User Authentication OverviewJim Fenton
 
Type script - advanced usage and practices
Type script  - advanced usage and practicesType script  - advanced usage and practices
Type script - advanced usage and practicesIwan van der Kleijn
 
Time-Based Blind SQL Injection
Time-Based Blind SQL InjectionTime-Based Blind SQL Injection
Time-Based Blind SQL Injectionmatt_presson
 
XSS Magic tricks
XSS Magic tricksXSS Magic tricks
XSS Magic tricksGarethHeyes
 
Asynchronous javascript
 Asynchronous javascript Asynchronous javascript
Asynchronous javascriptEman Mohamed
 
Amazon EFS (Elastic File System) 이해하고사용하기
Amazon EFS (Elastic File System) 이해하고사용하기Amazon EFS (Elastic File System) 이해하고사용하기
Amazon EFS (Elastic File System) 이해하고사용하기Amazon Web Services Korea
 

La actualidad más candente (20)

Introduction to React Native Workshop
Introduction to React Native WorkshopIntroduction to React Native Workshop
Introduction to React Native Workshop
 
IPSec | Computer Network
IPSec | Computer NetworkIPSec | Computer Network
IPSec | Computer Network
 
Bootstrap ppt
Bootstrap pptBootstrap ppt
Bootstrap ppt
 
Selenium Presentation at Engineering Colleges
Selenium Presentation at Engineering CollegesSelenium Presentation at Engineering Colleges
Selenium Presentation at Engineering Colleges
 
NEXT.JS
NEXT.JSNEXT.JS
NEXT.JS
 
Android studio installation
Android studio installationAndroid studio installation
Android studio installation
 
Introduction to Web Components
Introduction to Web ComponentsIntroduction to Web Components
Introduction to Web Components
 
Angular 8
Angular 8 Angular 8
Angular 8
 
Getting started with typescript
Getting started with typescriptGetting started with typescript
Getting started with typescript
 
Bootstrap PPT by Mukesh
Bootstrap PPT by MukeshBootstrap PPT by Mukesh
Bootstrap PPT by Mukesh
 
Attacking thru HTTP Host header
Attacking thru HTTP Host headerAttacking thru HTTP Host header
Attacking thru HTTP Host header
 
Modern JS with ES6
Modern JS with ES6Modern JS with ES6
Modern JS with ES6
 
User Authentication Overview
User Authentication OverviewUser Authentication Overview
User Authentication Overview
 
Bootstrap ppt
Bootstrap pptBootstrap ppt
Bootstrap ppt
 
JSON WEB TOKEN
JSON WEB TOKENJSON WEB TOKEN
JSON WEB TOKEN
 
Type script - advanced usage and practices
Type script  - advanced usage and practicesType script  - advanced usage and practices
Type script - advanced usage and practices
 
Time-Based Blind SQL Injection
Time-Based Blind SQL InjectionTime-Based Blind SQL Injection
Time-Based Blind SQL Injection
 
XSS Magic tricks
XSS Magic tricksXSS Magic tricks
XSS Magic tricks
 
Asynchronous javascript
 Asynchronous javascript Asynchronous javascript
Asynchronous javascript
 
Amazon EFS (Elastic File System) 이해하고사용하기
Amazon EFS (Elastic File System) 이해하고사용하기Amazon EFS (Elastic File System) 이해하고사용하기
Amazon EFS (Elastic File System) 이해하고사용하기
 

Similar a How to implement Google One Tap Login in Reactjs?

Angular 11 google social login or sign in tutorial using angularx social-login
Angular 11 google social login or sign in tutorial using angularx social-loginAngular 11 google social login or sign in tutorial using angularx social-login
Angular 11 google social login or sign in tutorial using angularx social-loginKaty Slemon
 
How to implement sso using o auth in golang application
How to implement sso using o auth in golang applicationHow to implement sso using o auth in golang application
How to implement sso using o auth in golang applicationKaty Slemon
 
Google external login setup in ASP (1).pdf
Google external login setup in ASP  (1).pdfGoogle external login setup in ASP  (1).pdf
Google external login setup in ASP (1).pdffindandsolve .com
 
Fraudpointer - Google Apps integration
Fraudpointer  - Google Apps integrationFraudpointer  - Google Apps integration
Fraudpointer - Google Apps integrationFraudpointer.com
 
OpenID Connect and Single Sign-On for Beginners
OpenID Connect and Single Sign-On for BeginnersOpenID Connect and Single Sign-On for Beginners
OpenID Connect and Single Sign-On for BeginnersSalesforce Developers
 
How To: Use Google Search Ap Is On Your Blog
How To: Use Google Search Ap Is On Your BlogHow To: Use Google Search Ap Is On Your Blog
How To: Use Google Search Ap Is On Your Blogmutex07
 
Build your first rpa bot using IBM RPA automation
Build your first rpa bot using IBM RPA automationBuild your first rpa bot using IBM RPA automation
Build your first rpa bot using IBM RPA automationWinton Winton
 
MuleSoft Integration with WhatsApp | Mysore MuleSoft Meetup #1
MuleSoft Integration with WhatsApp | Mysore MuleSoft Meetup #1MuleSoft Integration with WhatsApp | Mysore MuleSoft Meetup #1
MuleSoft Integration with WhatsApp | Mysore MuleSoft Meetup #1MysoreMuleSoftMeetup
 
How to integrate a subscription form with WordPress using a free plugin?
How to integrate a subscription form with WordPress using a free plugin?How to integrate a subscription form with WordPress using a free plugin?
How to integrate a subscription form with WordPress using a free plugin?GeniusContacts
 
Google Analytics Workshop 2013
Google Analytics Workshop 2013Google Analytics Workshop 2013
Google Analytics Workshop 2013Milad Safarzadeh
 
Introductution to social connect Magento extension
Introductution to social connect Magento extensionIntroductution to social connect Magento extension
Introductution to social connect Magento extensionKetan Raval
 
LA2M Google Tools Presentation Apr 1st 09
LA2M Google Tools Presentation Apr 1st 09LA2M Google Tools Presentation Apr 1st 09
LA2M Google Tools Presentation Apr 1st 09oneilldec
 
Earn $8,234.56 weekly from Google with CRACKD
Earn $8,234.56 weekly from Google with CRACKDEarn $8,234.56 weekly from Google with CRACKD
Earn $8,234.56 weekly from Google with CRACKDAMB-Review
 
Cleveland Meetup December 2022.pptx
Cleveland Meetup December 2022.pptxCleveland Meetup December 2022.pptx
Cleveland Meetup December 2022.pptxTintu Jacob Shaji
 
Google Analytics Questions Answer Prepration
Google Analytics Questions Answer PreprationGoogle Analytics Questions Answer Prepration
Google Analytics Questions Answer PreprationMandeep Hooda
 
Social Login Userguide
Social Login UserguideSocial Login Userguide
Social Login UserguideMagebuzz
 
Social login magento extension
Social login magento extensionSocial login magento extension
Social login magento extensionEmilyPhan21291
 
AI Platform Creator Review - DFY Al App
AI Platform Creator Review -  DFY Al AppAI Platform Creator Review -  DFY Al App
AI Platform Creator Review - DFY Al AppMdMasumAli4
 
WordPress + Office 365 | Quick Installation Guide v9.6
WordPress + Office 365 | Quick Installation Guide v9.6WordPress + Office 365 | Quick Installation Guide v9.6
WordPress + Office 365 | Quick Installation Guide v9.6Marco van Wieren
 

Similar a How to implement Google One Tap Login in Reactjs? (20)

Angular 11 google social login or sign in tutorial using angularx social-login
Angular 11 google social login or sign in tutorial using angularx social-loginAngular 11 google social login or sign in tutorial using angularx social-login
Angular 11 google social login or sign in tutorial using angularx social-login
 
How to implement sso using o auth in golang application
How to implement sso using o auth in golang applicationHow to implement sso using o auth in golang application
How to implement sso using o auth in golang application
 
Google external login setup in ASP (1).pdf
Google external login setup in ASP  (1).pdfGoogle external login setup in ASP  (1).pdf
Google external login setup in ASP (1).pdf
 
Fraudpointer - Google Apps integration
Fraudpointer  - Google Apps integrationFraudpointer  - Google Apps integration
Fraudpointer - Google Apps integration
 
OpenID Connect and Single Sign-On for Beginners
OpenID Connect and Single Sign-On for BeginnersOpenID Connect and Single Sign-On for Beginners
OpenID Connect and Single Sign-On for Beginners
 
How To: Use Google Search Ap Is On Your Blog
How To: Use Google Search Ap Is On Your BlogHow To: Use Google Search Ap Is On Your Blog
How To: Use Google Search Ap Is On Your Blog
 
Django Shop
Django ShopDjango Shop
Django Shop
 
Build your first rpa bot using IBM RPA automation
Build your first rpa bot using IBM RPA automationBuild your first rpa bot using IBM RPA automation
Build your first rpa bot using IBM RPA automation
 
MuleSoft Integration with WhatsApp | Mysore MuleSoft Meetup #1
MuleSoft Integration with WhatsApp | Mysore MuleSoft Meetup #1MuleSoft Integration with WhatsApp | Mysore MuleSoft Meetup #1
MuleSoft Integration with WhatsApp | Mysore MuleSoft Meetup #1
 
How to integrate a subscription form with WordPress using a free plugin?
How to integrate a subscription form with WordPress using a free plugin?How to integrate a subscription form with WordPress using a free plugin?
How to integrate a subscription form with WordPress using a free plugin?
 
Google Analytics Workshop 2013
Google Analytics Workshop 2013Google Analytics Workshop 2013
Google Analytics Workshop 2013
 
Introductution to social connect Magento extension
Introductution to social connect Magento extensionIntroductution to social connect Magento extension
Introductution to social connect Magento extension
 
LA2M Google Tools Presentation Apr 1st 09
LA2M Google Tools Presentation Apr 1st 09LA2M Google Tools Presentation Apr 1st 09
LA2M Google Tools Presentation Apr 1st 09
 
Earn $8,234.56 weekly from Google with CRACKD
Earn $8,234.56 weekly from Google with CRACKDEarn $8,234.56 weekly from Google with CRACKD
Earn $8,234.56 weekly from Google with CRACKD
 
Cleveland Meetup December 2022.pptx
Cleveland Meetup December 2022.pptxCleveland Meetup December 2022.pptx
Cleveland Meetup December 2022.pptx
 
Google Analytics Questions Answer Prepration
Google Analytics Questions Answer PreprationGoogle Analytics Questions Answer Prepration
Google Analytics Questions Answer Prepration
 
Social Login Userguide
Social Login UserguideSocial Login Userguide
Social Login Userguide
 
Social login magento extension
Social login magento extensionSocial login magento extension
Social login magento extension
 
AI Platform Creator Review - DFY Al App
AI Platform Creator Review -  DFY Al AppAI Platform Creator Review -  DFY Al App
AI Platform Creator Review - DFY Al App
 
WordPress + Office 365 | Quick Installation Guide v9.6
WordPress + Office 365 | Quick Installation Guide v9.6WordPress + Office 365 | Quick Installation Guide v9.6
WordPress + Office 365 | Quick Installation Guide v9.6
 

Último

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 

Último (20)

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 

How to implement Google One Tap Login in Reactjs?

  • 1. One Tap Google Login with ReactJs A guide by Sufalam Technologies Pvt Ltd Pradip Vadher Sr. Reactjs Developer www.sufalamtech.com
  • 2. Why to choose One Tap Google Login? ● Sign-in with Google One Tap uses secure tokens, rather than login credentials, to sign users to the web application ● An easy sign-in process is meant to help users reduce the pressure of picking convenience over security when deciding on yet another password for a web app www.sufalamtech.com
  • 3. Why to choose One Tap Google Login? ● Users can sign in using just one tap, without having to remember their credentials or create a password ● Easy flow increased the sign-in with existing user and sign-up for new users www.sufalamtech.com
  • 4. Why to choose One Tap Google Login? ● Users can sign in or sign up anywhere in the web application, It also works after session expired ● Manual sign-up or switching accounts occur only after the user has first signed out of your site. www.sufalamtech.com
  • 5. Why to choose One Tap Google Login? ● One Tap Google Login also works with “Sign-in with Google” Button www.sufalamtech.com
  • 6. How to implements One Tap in ReactJs? www.sufalamtech.com
  • 7. Implement One Tap Login Step 1 Get Google API Client Id Step 2 Load the One-tap Google library Step 3 Initialize One tap to display Sign in Popup www.sufalamtech.com
  • 8. 1. Get Your Google API Client Id From Google Console To use Google’s one-tap sign-in flows, you need to set up your Google API client ID. If you don’t have Google Client Id then you need to create a new one. Use the below details to create a new client id. https://console.cloud.google.com/apis/credentials www.sufalamtech.com
  • 10. 2. Load Google Javascript Client Library The JavaScript client library for Sign In With Google and Google One Tap is designed to be compatible with most common browsers and platforms. <script src="https://accounts.google.com/gsi/client" async defer /> Due to security risks the JavaScript client library is only supported on the latest two versions of each browser www.sufalamtech.com
  • 11. 3. Initialize One tap to display Sign in Popup We have to initialize the client id to the google account script that loaded in system that we checked in the last step. After that we have to use prompt method to display the popup of one tap google login www.sufalamtech.com
  • 12. 3. Initialize One tap to display Sign in Popup www.sufalamtech.com
  • 14. Browser and platform combinations www.sufalamtech.com
  • 16. 1. Load the Javascript Client Library www.sufalamtech.com
  • 18. 2. Add Callback method to google api initialize block www.sufalamtech.com
  • 20. 3. Add Decode Method to find the user details from the callback response www.sufalamtech.com
  • 24. Browser Output Without Existing Google Login www.sufalamtech.com
  • 26. Security Concerns While Implementing One Tap www.sufalamtech.com
  • 27. 1. Google One Tap can only be displayed in HTTPS domains. www.sufalamtech.com 2. Due to security risks the JavaScript client library is only supported on the latest two versions of each browser.
  • 28. 3.Do not cover Google One Tap by any other content. www.sufalamtech.com 4. One Tap Google Login is NOT configured to work on Private Window.
  • 29. Checkout complete example on Git Hub https://github.com/Sufalam- Technologies/one_tap_google_login www.sufalamtech.com
  • 30. Thank You Follow Us On www.sufalamtech.com