python - migration from Google Gitkit to Firebase sdk -


our mobile app (ios & android) uses google identity toolkit (gitkit) auth following flow:

  • mobile user auths google, facebook or un/pw using gitkit client
  • gitkit returns jw-token our app
  • the app makes api request sending jwtoken our backend
  • our app-engine backend (python) converts jwt payload dict/hashmap describing user
  • we generate our own "app-login-token" user
  • we store user & token following ndb entities (user, usertoken, unique)
  • we return userid , our app-token mobile client
  • the app uses user/token pair subsequent api requests

my question: how have change or rewrite in order migrate googles new "firebase auth"? can keep of existing infrastructure or firebase require different approach?