12,131 questions
1
vote
0
answers
56
views
How do I resolve `state_mismatch` error with Google OAuth in a Next.js app using Better Auth?
I have a Next.js application with Better Auth setup. I can sign up and log in fine using email and password. I implemented OAuth sign in with Google, but that only worked once or twice. If I somehow ...
0
votes
0
answers
48
views
Using PKCE for obtaining access token [closed]
I am currently developing a desktop application that will be using Google API so I have a desktop app client on google cloud. From the start I was using client id + client secret for obtaining access ...
0
votes
0
answers
36
views
I use only the default oauth scope for my google workspace marketplace addon..should i still handle granular consent (before Dec 1, 2025) [closed]
My google workspace marketplace addon dosen't require any additional scope while installing (just the default scopes Email and Profile are enough)...But google has sent me mail to handle granular ...
-4
votes
0
answers
55
views
FireBase | Sign in with Google Concept | Ionic + Angular [closed]
I'm using Ionic v8 + angular v20 + capacitor v7 + @capgo/capacitor-social-login v7 + firebase v12
I'm trying to do sign in with google concept using Fire base but it is not woking When I click the ...
2
votes
0
answers
78
views
Changes made in Google OAuth testing project are not reflecting
Changes made in the Google OAuth testing project are not reflecting.
I tried updating the Redirect URI in Google Cloud Console
, but even after saving, it still throws a redirect_uri_mismatch error. ...
1
vote
0
answers
68
views
Strapi v5 Google Auth: "Grant: missing session or misconfigured provider"
I'm trying to set up Google authentication in Strapi v5 using the Users & Permissions plugin, with a Next.js frontend.
The problem happens right after I accept the Google login.
Instead of ...
0
votes
0
answers
61
views
Cannot Access OAuth Consent Screen - Keeps Redirecting to auth/overview Page
I'm trying to configure the OAuth consent screen for my Google Cloud project but I keep getting redirected to a different page.
What I'm trying to do:
Configure OAuth consent screen settings (app name,...
0
votes
0
answers
133
views
Google Login Redirect Not Working in CodeIgniter 4: 'Page Does Not Exist' Error on Callback
I'm integrating Google OAuth login in my CodeIgniter project, but I'm encountering an issue with the redirect URI after successfully authenticating with Google. Here's a summary of the problem:
My ...
2
votes
1
answer
116
views
Google Oauth authorization is stuck after accepting consent
I have an app that is failing to continue processing after I consent to the desired API scopes. My process is as follows:
The app is a Java web app running on Tomcat 10.1. It is an internal, single ...
-1
votes
0
answers
97
views
Add redirect URI to Android Oauth 2.0 client ids
I'm trying to enable Google Login inside my app, but I don't see a section to add a redirect URI to my Android Google Oauth 2.0 Client ID.
I'm getting the following error when using expo go React ...
0
votes
0
answers
101
views
Gmail API OAuth token expires after a few days, and re-authentication fails for some accounts
I’ve built an app similar to gmass.co/inbox
I'm using gmail.readonly
to help check where our emails land (Inbox, Promotions, Spam, etc.) in specific Gmail accounts before launching email campaigns.
...
0
votes
0
answers
74
views
Error `invalid_grant` when trying to obtain a refresh_token from Google
I want to connect Google Business reviews. I have created a web application and have a client ID and client secret.
The following APIs are connected:
Analytics Hub API
Anthos Service Mesh Certificate ...
0
votes
0
answers
128
views
Google Calendar API refresh token stops working after 1 hour – requires user to reconnect
I’m integrating Google Calendar using OAuth2.
During testing, I noticed that refresh tokens stop working after about an hour.
Issue behavior:
If I connect the calendar and use the token to create a ...
0
votes
0
answers
86
views
Cloud run native IAP not working for Streamlit App
I have configured all the permissions for user and service correctly. I need to build a user facing app which would use IAP on cloud run to verify the user.
However even after configuring permissions ...
0
votes
0
answers
75
views
Cross-Browser Extension OAuth2 with Google Calendar API: Avoiding client_secret and redirect_uri_mismatch while keeping token refresh possible?
Problem
I'm building a browser extension that needs to authenticate with Google Calendar API across Chrome, Brave, Edge, and Firefox. I want persistent authentication with refresh tokens, but I'm ...
3
votes
1
answer
229
views
Why does auth.authenticate_user() in Google Colab not give access to my personal Google Calendar?
I’m trying to access my Google Calendar events from Google Colab using the Google Calendar API.
from google.colab import auth
from googleapiclient.discovery import build
import google.auth
import ...
0
votes
0
answers
322
views
redirect_uri_mismatch and requested path is invalid errors despite correct configuration
I've encountered a Supabase Google OAuth flow issue that only occurs when testing with Expo Go. The authentication flow works perfectly in a development build created with eas build, but fails in Expo ...
1
vote
0
answers
90
views
Google Apps Script fails to automatically request necessary OAuth scopes for SpreadsheetApp and ScriptApp
I'm experiencing a very unusual issue with Google Apps Script that I haven't encountered before, despite having built similar scripts multiple times. The script seems to be failing to automatically ...
0
votes
0
answers
88
views
Authentication logic isn't working due to new updates in the appwrite database and auth methods
I'm building a react based admin dashboard.
Note: The setup between google auth api and the appwrite auth has been done correctly and the appwrite project has been connected with my local project ...
2
votes
1
answer
337
views
`google.auth` python SDK not reading granted scopes from credentials file
I've run:
gcloud auth application-default login --client-id-file google_oauth_client_id.json --scopes="https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/calendar....
0
votes
0
answers
123
views
Appwrite OAuth with Flutter (Google login) keep failing on mobile
I’m trying to setup Google login with Appwrite on my Flutter app (Android).
The problem is two different cases:
If I don’t add success and failure urls in createOAuth2Session, it open the google ...
2
votes
0
answers
171
views
Expo SDK 53 broke Google Authentication
Everything was working fine on Expo SDK 51. But since I updated to SDK 53, Google Authentication cannot redirect me back to the application - I keep staying in Web View browser, where Google main page ...
0
votes
0
answers
172
views
Why do Google's OAuth consent screen internal endpoints return 400/405 errors in production?
I'm implementing Google OAuth 2.0 with PKCE for a web application. The OAuth request generation works perfectly and users can select their Google account, but Google's internal consent screen ...
0
votes
0
answers
101
views
Spring Webflux, authenticationSuccessHandler not invoked in oAuth2 login flow
I am still a beginner in Webflux. I want to get the user logged in using google and once the user is authenticated, I want to create my custom JWT (which has some role info specific to my app) and ...
0
votes
0
answers
64
views
Oauth client authorization fails because of the Google ADC
I'm trying to work on my home project where I contact Google services like Gmail, Sheets, Drive. Services that are not Google Cloud per se.
I've implemented GmailApi quickstart guide for python, but ...
1
vote
0
answers
110
views
Receive Error 400: redirect_uri_mismatch when trying to use OAuth
I am using Render.com to deploy online a flask app. I want it to first login using Google OAuth before accessing the website. However, I must be doing something wrong because it does pull up the "...
1
vote
1
answer
371
views
Google Sign-In Failed with "Access blocked: Authorization error, Error: Invalid_scope" in Flutter
I'm getting an "Access blocked: Authorization error, Error: Invalid_scope" error when trying to implement Google Sign-In in my Flutter application with multiple OAuth scopes.
Error Message
...
0
votes
0
answers
320
views
Google OAuth2 Error 401: invalid_client Request details: flowName=GeneralOAuthFlow on Flutter app with Supabase
I am making a flutter app with regular login as well as Login with Google functionality using Google Oauth v2 and Supabase. I have tested login with google on local development as well as my ...
0
votes
0
answers
141
views
"The state token is invalid or has expired. Please try again." error
Subject: Persistent "State Token Invalid" Error in Google Apps Script Web App for Test Users (OAuth2 Library)
I'm encountering a highly persistent and perplexing "The state token is ...
0
votes
0
answers
76
views
Django google-auth-oauthlib insecure_transport error on Cloud Workstations despite HTTPS and SECURE_PROXY_SSL_HEADER
I'm developing a Django application on Firebase Studio environment. I'm trying to implement Google OAuth 2.0 for my users (doctors) to connect their Google Calendar accounts using the google-auth-...
2
votes
2
answers
359
views
Google Drive API files.download restricted scope
I've a web application that uses the Google File Picker to select a file, and then internally my backend takes the fileId and calls this API to download it:
https://developers.google.com/workspace/...
1
vote
0
answers
149
views
Google OAuth2 returns an entirely different request_uri than what I submitted or configured
I have configured, clearly, my redirect_uri to be: http://127.0.0.1:8080
But when I attempt to log in, google replies with an different redirect_uri, and then returns a "redirect_uri_mismatch&...
0
votes
0
answers
287
views
Google OAuth Error 400: invalid_request when using n8n on Fly.io
I’m running n8n (workflow automation tool) on Fly.io, and it works fine.
Now I’m trying to connect Google services like Gmail or Google Sheets using OAuth2.
I created a Google Cloud OAuth 2.0 Client ...
0
votes
0
answers
94
views
Node.js Google Sheets API returns 401 'Login Required' on first call despite valid refresh token
I am building a Node.js server-side application that needs to interact with the Google Sheets API on behalf of a user using the googleapis and google-auth-library packages.
I have successfully ...
1
vote
1
answer
133
views
Google Auth with Google Identity Services in the front end deprecation confusion [duplicate]
I'm having a hard time understanding what is and what is not deprecated.
In the The Google API client, if you click on the "auth" guide, you end up with a message "gapi.auth2 has been ...
1
vote
1
answer
92
views
Rust OAUTH2 token extra_field
So I'm trying to validate Google's nonce token which is in the extra_fields of the token object. Ever since the 5.0.0 update, oauth now requires strict type match (no more token.extra_fields().get(&...
0
votes
0
answers
61
views
How to verify a Chrome Extension that uses Google Calendar API without owning a domain?
I'm developing a Chrome Extension (non-commercial, open-source) that extracts information from Gmail messages and creates Google Calendar events.
To avoid the “This app is unverified” warning, I'm ...
0
votes
0
answers
80
views
supabase google auth wont get cookies
i just ran into this problem and cant fix it myself and refuse to use AI for this project so you are my last resort rn.
im building this app with supabase and i'm using the auth services to sign in ...
1
vote
0
answers
59
views
Flutter Supabase Google Authentication Session is not saving
In my flutter app, the user has two options. auth with email and auth with google. if you choose email there is no problem but if you choose google you can pass auth part but when you close the app ...
0
votes
1
answer
176
views
Problems with CredentialManager: Cannot auto sign in with multiple accounts, no logout API, and login failure after app access revocation
I'm implementing Google Sign-In in my Android app using the new CredentialManager API. However, I'm facing several critical issues that are making it hard to replace the old GoogleSignInClient:
Issues:...
0
votes
0
answers
101
views
GoogleAPI, Get User's Additional Emails
I have a question about GAPI and People API. After the user signs in with Google OAuth I need to collect every email address attached to that Google Account (aliases / secondary addresses).
So what I'...
1
vote
1
answer
48
views
Integrating wiremock with node for google oauth flow
I am trying to mock google oauth flow with wiremock in my nodejs app for integration tests.
I have configured in my passport manager code:
passport.use(new GoogleStrategy({
clientID: config....
0
votes
1
answer
254
views
React Native Expo- Sign with google not working on android
Currently having issues with React Native - Expo with integrating sign with google.
I followed some previous posts here but it hasn't gotten me anywhere
What is happening is I tried with latest ...
0
votes
0
answers
48
views
How to I use the "popup" flow for Google auth to convert a code to an access token -- I keep getting an error
I have a browser/web server based app where I am trying to authenticate the user in the browser and then be able to keep them authenticated with a refresh token.
I believe I should be using google....
1
vote
0
answers
155
views
Internal server error "Cannot read properties of undefined" during Google OAuth
I created authentications using Better-Auth and Google as the auth client. I have the correct URL for the authorized JavaScript origins and for the authorized redirect URL and I believe my set up is ...
0
votes
1
answer
266
views
AWS Amplify v6 OAuth Configuration: "OAuthNotConfigureException: oauth param not configured" despite correct config
I'm getting an OAuthNotConfigureException: oauth param not configured error when trying to use Google OAuth with AWS Amplify v6, even though my configuration appears correct.
Environment:
AWS Amplify ...
0
votes
0
answers
52
views
Unable to access Cognito Identity Pool with Google client
I'm getting
NotAuthorizedException(message=Token is not from a supported provider of this identity pool.)
despite google being added as a identity provider in my Cognito Identity Pool with the Web ...
0
votes
0
answers
44
views
Expo Auth Google signin failed
I created an Expo app that uses google signin,
import { supabase } from '@/utils/supabase'
import { FontAwesome } from '@expo/vector-icons'
import { makeRedirectUri } from 'expo-auth-session'
import * ...
0
votes
0
answers
76
views
Google OAuth and ASP.NET Core: can't execute logic after successful login attempt
I've got a problem with implementing Google authentication. In my application, we authenticate users by issuing them a JWT, but signing in with Google is also important, so I tried to implement some ...
1
vote
1
answer
125
views
How to restrict access of a service account to only specified user(s) in google workspace?
I'm developing an application that needs to read and label emails from a single, specific mailbox that is a part of a google workspace.
I managed to connect a service account to the workspace using ...