1
votes

How can you delete an old clientID?

I have created and generated a new clientID in the google developer console

google developer console

the new clientID does not match the one in the browser. This probably explains the error while attempting to signin

error while attempting to signin

I know everything is right in the app set up

  • this is my package.json

    "name": "auth-firebase-2", "version": "0.0.1", "author": "Ionic Framework", "homepage": "http://ionicframework.com/", "private": true, "scripts": { "clean": "ionic-app-scripts clean", "build": "ionic-app-scripts build", "lint": "ionic-app-scripts lint", "ionic:build": "ionic-app-scripts build", "ionic:serve": "ionic-app-scripts serve" }, "dependencies": { "@angular/animations": "5.2.9", "@angular/common": "5.2.9", "@angular/compiler": "5.2.9", "@angular/compiler-cli": "5.2.9", "@angular/core": "5.2.9", "@angular/forms": "5.2.9", "@angular/http": "5.2.9", "@angular/platform-browser": "5.2.9", "@angular/platform-browser-dynamic": "5.2.9", "@ionic-native/core": "4.6.0", "@ionic-native/splash-screen": "4.6.0", "@ionic-native/status-bar": "4.6.0", "@ionic/storage": "2.1.3", "angularfire2": "^5.0.0-rc.6.0", "cordova-android": "7.0.0", "cordova-browser": "5.0.3", "cordova-ios": "4.5.4", "cordova-plugin-device": "^2.0.2", "cordova-plugin-googleplus": "^5.3.0", "cordova-plugin-ionic-keyboard": "^2.0.5", "cordova-plugin-ionic-webview": "^1.2.0", "cordova-plugin-splashscreen": "^5.0.2", "cordova-plugin-whitelist": "^1.3.3", "firebase": "^4.13.0", "ionic-angular": "3.9.2", "ionicons": "3.0.0", "rxjs": "5.5.8", "sw-toolbox": "3.6.0", "zone.js": "0.8.26" }, "devDependencies": { "@ionic/app-scripts": "3.1.9", "typescript": "~2.6.2" }, "description": "An Ionic project", "cordova": { "plugins": { "cordova-plugin-whitelist": {}, "cordova-plugin-device": {}, "cordova-plugin-splashscreen": {}, "cordova-plugin-ionic-webview": {}, "cordova-plugin-ionic-keyboard": {}, "cordova-plugin-googleplus": { "WEB_APPLICATION_CLIENT_ID": "1043269342338-6fta7jjp2u2rf4fhiupme8b0g1bf3br4.apps.googleusercontent.com", "REVERSED_CLIENT_ID": "com.googleusercontent.apps.558165536676-14360cssjil4t4c6tcvnr9ugu8lanehc" } }, "platforms": [ "browser", "android" ] } }

  • Google Sign in is enabled

enter image description here

  • I have created the credentials in the google developper console and GooglePlus API is enabled as well

The only issue is that the browser seems to retain the old clientID (now deleted)

I have tried as follows : - clear caching in chrome : settings > advanced > clear browsing data - npm cache clean

nothing worked. So How do you actually remove all references to an old clientID ?

Thanks

2

2 Answers

1
votes

Not sure if you're still looking for an answer but posting it here for anyone else.

This happens because you deleted the credentials on the Google Developer Console. Once you go back in there and recreate credentials, head back to your working directory and delete your old token which should be there.

It'll be back up and running after.

0
votes

When you create the new credentials delete the old token file which resides in your project directory.