Skip to main content

All Questions

2 votes
0 answers
402 views

How to consistently render Google Identity Services button in Next.js 13?

I'm currently building an app in Next.js 13 with the app router, and I've added a "Sign in with Google" functionality by utilizing the HTML + script template provided by Google. Originally, ...
hjdjoo's user avatar
  • 21
1 vote
1 answer
187 views

Content Security Policy: The page’s settings blocked the loading of a resource

I have implemented Google Sign-In button in a ReactJS web client. After successful sign-in the page fails to get redirected from "https://accounts.google.com/..." back to my web-client URL ...
Govind Avireddi's user avatar
0 votes
1 answer
1k views

How to use the new Google API with scopes?

For a uni project, I was attempting to create a simple demo React app that would fetch some data from a Google Account – first the basic stuff, like name and avatar, but then "scoped data" ...
nurlantig's user avatar
0 votes
1 answer
101 views

How to implement Google identity services library in React?

This would be my current code and it stopped working: import React, { Component } from "react"; import Auth from "../../helper/auth"; import PropTypes from "prop-types"; ...
Dženis H.'s user avatar
  • 7,772
4 votes
1 answer
1k views

How to handle login/logout using @react-oauth/google

I am developing a side project that allows a user to login with Google and access/manage their Google Books content. So far, I have Sign in With Google working via @react-oauth/google. Here is the ...
user1753491's user avatar
1 vote
1 answer
845 views

How to migrate to new google identity service sign in?

I have an app where I need to migrate to the new google identity service sign in methods. For several days I am stuck on this issue and I have no idea how to do it, the documentation that google ...
ahmedskulj10's user avatar
0 votes
0 answers
118 views

How to restrict access to backend App Engine application from a specific EXTERNAL React-JS frontend?

I would like to access all my Flask routes of my Python application running in a Google App Engine only from a React-JS frontend and therefore deny all other requests which are not coming from that ...
mvn1587's user avatar
  • 11
1 vote
0 answers
1k views

Getting error 'Property 'accounts' does not exist on type 'typeof google'' when using Google identity services with react

I am trying to implement authentication using Google in react as below. useEffect(() => { /* global google */ google.accounts.id.initialize({ client_id: "62032923843-...
Amos Machora's user avatar
2 votes
1 answer
1k views

Refreshing an access token received from Google Identity Services / React App

I have a trouble right now with an access token received from Google Identity Services. Some details about the case. I have full stack application, back-end based on Spring/Webflux/Hibernate-Reactive ...
Petar Dimitrov's user avatar
2 votes
1 answer
243 views

Fetch dynamic URL after logged in with Google Identity Services in Typescript

What I need to do is to be able to log in with GIS, and then fetch an URL that would end with the {user.email} we just got from decoding the JWT. Here is my code : interface userI { name: ...
Alexis's user avatar
  • 21
0 votes
1 answer
166 views

How can you tell/wait for a user to be determined to be logged in or not?

According to the official firebase docs for implementation of google login, you create a listener/observer (onAuthStateChanged) that will emit a user once your user has successfully gone through the ...
telestrial's user avatar
1 vote
0 answers
206 views

Not able to implement new google auth using google identity services in react

According to the docs: https://www.npmjs.com/package/@react-oauth/google , the first step involves wrapping your app in GoogleOAuthProvider When I do this I get the following error in my console: App....
Lak's user avatar
  • 35
1 vote
1 answer
761 views

Google Identity Services Login with React

I'm trying to implement Google Identity Services Login without third parties, everything works well because I get the response when I try to sign in, except for the error shown in the console: "...
user19113212's user avatar
0 votes
0 answers
164 views

sign in prompt causes "Unable to preventDefault inside passive event listener due to target being treated as passive" ERROR

I'm using Google Sign In (Identity Services) to implement login/logout functionalities on my React web app. Everything except for the One Tap Prompt works just fine. The prompt itself even sometimes ...
SamSa's user avatar
  • 133
8 votes
4 answers
11k views

React Google Identity services

I have been trying to implement Google's identity services API in my React app, but couldn't get it to work. I'm trying to implement the following really simple JS code: https://developers.google.com/...
Tomás's user avatar
  • 375

15 30 50 per page