A server for Google App Engine to generate authentication tokens for Firebase from digits responses
- Create a new Google App Engine Project
- Add a service account with a JSON key
- Paste the email address and key from that in config.yaml
- Get your twitter authentication info from your Info.plist file (Fabric->Kits[i]->KitInfo) and paste that into config.yaml
- Copy app.example.yaml to app.yaml and fill in your application name
- Deploy
- In your -digitsAuthenticationFinishedWithSession:error: callback, make a request to the server with the following parameters:
- auth_token
- auth_token_secret
- Use the response and call -signInWithCustomToken:completion: with the token returned from the server
TokenManager.generateToken(session, callback: { (token, error) in
FIRAuth.auth()?.signInWithCustomToken(self.token!, completion: nil)
})