You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When I sign in with apple, after the authentication from apple part, the app just crashes.
After some dig-ins, I found the error is caused by giving a nil value to the NSDictionary object.
The current version has added a fourth field (kArgumentAccessToken) to the getNSDictionaryFromAuthCredential result, but the accessToken is always nil, so it throws the error.
Steps to reproduce
Steps to reproduce the behavior:
Tap sign in with apple,
After apple authentication, the app just crashed,
The log indicates:
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason:
-L.
__NSPlaceholderDictionary initWithobjects: forKeys:count:]: attempt to insert nil object from objects[3]'
Expected behavior
Should not crash and must work as before.
Sample project
Providing a minimal example project which demonstrates the bug in isolation from your main App greatly enhances the chance of a timely fix.
Please link to the public repository URL.
Additional context
Add any other context about the problem here.
Flutter doctor
Run flutter doctor and paste the output below:
Click To Expand
PASTE OUTPUT INSIDE HERE
Flutter dependencies
Run flutter pub deps -- --style=compact and paste the output below:
Click To Expand
PASTE OUTPUT INSIDE HERE
The text was updated successfully, but these errors were encountered:
The same issue with me. Tested on real device iPhone 7.
Notice, in line 496 we have a OAuthCredential without accessToken. But in case you sign in with Google there will be accessToken. The question is "Why we do not have access token in the case with Apple?"
Bug report
Describe the bug
When I sign in with apple, after the authentication from apple part, the app just crashes.
After some dig-ins, I found the error is caused by giving a nil value to the NSDictionary object.
The current version has added a fourth field (
kArgumentAccessToken
) to thegetNSDictionaryFromAuthCredential
result, but theaccessToken
is always nil, so it throws the error.Steps to reproduce
Steps to reproduce the behavior:
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason:
-L.
__NSPlaceholderDictionary initWithobjects: forKeys:count:]: attempt to insert nil object from objects[3]'
Expected behavior
Should not crash and must work as before.
Sample project
Providing a minimal example project which demonstrates the bug in isolation from your main App greatly enhances the chance of a timely fix.
Please link to the public repository URL.
Additional context
Add any other context about the problem here.
Flutter doctor
Run
flutter doctor
and paste the output below:Click To Expand
Flutter dependencies
Run
flutter pub deps -- --style=compact
and paste the output below:Click To Expand
The text was updated successfully, but these errors were encountered: