Search code examples
swiftfirebaseinstagram-api

Firebase refuses Instagram API token


I want to authenticate a user in Firebase with an Instagram API custom token. I got my token from the Instagram API, but when I send my token to the Firebase signIn with the custom token method, Firebase refuses my token. Here is the error I'm getting:

FIRAuthErrorUserInfoNameKey=ERROR_INVALID_CUSTOM_TOKEN, NSLocalizedDescription=Invalid assertion format., error_name=ERROR_INVALID_CUSTOM_TOKEN. this is my token format: 12634564280.0cbnf82.ee84rtyu1574c349a3433b9f0ce0789

Any help is appreciated!


Solution

  • An Instagram API token is not a valid Firebase Authentication token. You'll need to create a custom Firebase Authentication token to be able to sign into Firebase.