Skip to content

Instantly share code, notes, and snippets.

@rromanchuk
Created April 19, 2018 03:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rromanchuk/8917d4ce212951dd03b85501faac6a44 to your computer and use it in GitHub Desktop.
Save rromanchuk/8917d4ce212951dd03b85501faac6a44 to your computer and use it in GitHub Desktop.
// https://stackoverflow.com/questions/49771555/firebase-auth-error-data-parameter-is-nil-calling-getidtokenforcingrefresh
// https://github.com/firebase/firebase-ios-sdk/issues/1072
// https://github.com/firebase/firebase-ios-sdk/issues/1140
func applicationDidBecomeActive(_ application: UIApplication) {
if let currentUser = Auth.auth().currentUser {
currentUser.getIDToken { (token, error) in
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment