All Questions
Tagged with google-identity reactjs
25
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, ...
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 ...
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" ...
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";
...
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 ...
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 ...
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 ...
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-...
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 ...
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: ...
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 ...
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....
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:
"...
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 ...
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/...