I got error 'auth/internal-error' cannot perform google authentication using firebase

www.googleapis.com/identitytoolkit/v3/relyingparty/getProjectConfig?key=AIzaSyDPPLQAVP2DxNsFFfi2iAgl6wjDm7OpGzc&cb=1506430923859:1 GET https://www.googleapis.com/identitytoolkit/v3/relyingparty/getProjectConfig?key=AIzaSyDPPLQAVP2DxNsFFfi2iAgl6wjDm7OpGzc&cb=1506430923859 403 ()
O { code: "auth/internal-error", message: "{"error":{"errors":[{"domain":"usageLimits","reaso… action to propagate to our systems and retry."}}"}code: "auth/internal-error"message: "{"error":{"errors":[{"domain":"usageLimits","reason":"accessNotConfigured","message":"Access Not Configured. Google Identity Toolkit API has not been used in project 600992827094 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/identitytoolkit.googleapis.com/overview?project=600992827094 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.","extendedHelp":"https://console.developers.google.com/apis/api/identitytoolkit.googleapis.com/overview?project=600992827094"}],"code":403,"message":"Access Not Configured. Google Identity Toolkit API has not been used in project 600992827094 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/identitytoolkit.googleapis.com/overview?project=600992827094 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry."}}"proto: ErrorI: ƒ ()constructor: ƒ (a,b)Cg: ƒ (a,c,f)Sc: {name: "Error", message: "", constructor: ƒ, toString: ƒ}arguments: nullcaller: nulllength: 2name: "O"prototype: Error {constructor: ƒ, I: ƒ, toJSON: ƒ}proto: ƒ ()[[FunctionLocation]]: auth.js:112[[Scopes]]: Scopes[4]toJSON: ƒ ()arguments: nullcaller: nulllength: 0name: "a"prototype: {constructor: ƒ}proto: ƒ ()[[FunctionLocation]]: auth.js:281[[Scopes]]: Scopes[5]proto: Object
Did you accidentally turn off "Identity Toolkit API" in Google Cloud Console? You have to go an re-enable it. The URL looks something like: https://console.cloud.google.com/apis/api/identitytoolkit.googleapis.com/overview?project=project_ID&duration=PT1H
Can anyone tell me how to turn on the "identity toolkit API"?
I updated the link. The one I provided is not an external one. Just substitute your project ID. You must have turned it off because this is always on when you create a Firebase project.
In the toolkit what operation I need to perform in the cloud platform
Did you solve the problem? I got the same error and Identity Toolkit API is certainly enabled.
I am experiencing the same issue. Toolkit is enabled and all necessary services in the firebase console is enabled
If you are having similar issues, open a ticket with Firebase Support. There is likely some issue with your Cloud Console project setup. Also, internal error is a generic error. It could mean different things per situation. You need to inspect the message content which contains more details.
was initialising my app with admin.inializeApp(functions.config().firebase). Initialising the app with the
admin.initializeApp({
credential: admin.credential.cert(serviceAccount),
databaseURL: 'https://XYZ.firebaseio.com/',
storageBucket: 'gs://project-XYZ.appspot.com/'
});
method fixed it.
@foffer, this is the repo for firebaseui-web. For Admin SDK issues, post your questions in the Admin Node.js SDK repo
please check apikey.May be you have deleted it from google console.
Did you re-generate or update your api key recently? mine was that reason. Update your api key and try again.
Head to your API key on cloud console and check the restriction on it. firebase API keys credentials
I will close this. If you are experiencing auth/internal-error on Firebase auth-wen please open a a new issue and especially make sure you paste the details of the issue from the console as it should contains more information.
Also getting the same error: {code: "auth/internal-error", message: "{"error":{"code":400,"message":"API key not valid.…son":"badRequest"}],"status":"INVALID_ARGUMENT"}}"}
I get this when i try to login with FirebaseAuth, any suggestions?
It is what is says. Your browser API key has some issues. It is possible it was deleted. You will need to create a new one from the Google cloud console.
export const environment = { production: false, firebase: { apiKey: "AIzaSyDdfS2NAHw4xrwt4ncytckD9DFivgY0h78", authDomain: "tomsproductsdatabase-c9adc.firebaseapp.com", databaseURL: "https://tomsproductsdatabase-c9adc.firebaseio.com", projectId: "tomsproductsdatabase-c9adc", storageBucket: "tomsproductsdatabase-c9adc.appspot.com", messagingSenderId: "629158406743" },
that's my key. I double checked that it is the same one on firebase. First time doing this so not sure if i'm missing something. I was using that API for my database and all good until i included the authentication.
Getting this warning in Developer Tools. Don't know if its related? It looks like you're using the development build of the Firebase JS SDK. When deploying Firebase apps to production, it is advisable to only import the individual SDK components you intend to use.
For the module builds, these are available in the following manner
(replace
CommonJS Modules:
const firebase = require('firebase/app');
require('firebase/
ES Modules:
import firebase from 'firebase/app';
import 'firebase/
./node_modules/firebase/dist/index.cjs.js @ index.cjs.js:125 webpack_require @ bootstrap:78 ./src/app/service/auth.service.ts @ auth.guard.ts:9 webpack_require @ bootstrap:78 ./src/app/nav/nav.component.ts @ main.js:484 webpack_require @ bootstrap:78 ./src/app/app.module.ts @ app.component.ts:19 webpack_require @ bootstrap:78 ./src/main.ts @ main.ts:1 webpack_require @ bootstrap:78 0 @ main.ts:12 webpack_require @ bootstrap:78 checkDeferredModules @ bootstrap:45 webpackJsonpCallback @ bootstrap:32 (anonymous) @ main.js:1 core.js:3121 Angular is running in the development mo
None of these questions are related to FirebaseUI. For general debugging questions, use stackoverflow or Firebase support if private project related data may be needed for debugging and public forums are not a safe channel for that.
The issue is clearly in your API key. Can't say more as we don't have additional information. The paste of the error you provided is trimmed. You trimmed the most useful part of the error unfortunately.
The second paste is not related to Auth, FirebaseUI or the the error you are seeing. It doesn't look like an error. It is a warning that you are including the entire firebase module and not the individual components. You can ask about this in the firebase-js-sdk repo.
Hi,
I have been getting this particular error on one of my page:

the link of the page: https://vecta.io/api
It works on every other page except for this. Is there anywhere I can refer to, to understand the problem better?