-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There is no return object for signIn() method #4
Comments
Hello @J-DK , I think the problem is at the library. We are not returning the results of the signIn() method: This is how it is today Future<void> signIn() async {
if (this.isInitialized == false) {
throw Exception("Cannot sign in before initializing Okta SDK");
}
await _channel.invokeMethod('signIn');
} And it should be like this: Future<void> signIn() async {
if (this.isInitialized == false) {
throw Exception("Cannot sign in before initializing Okta SDK");
}
return await _channel.invokeMethod('signIn');
} Going through the native code, I think the native class is returning the result, but the Dart class is not. I'll open a Issue for this, and hopefully release a fix soon |
@J-DK , this was published at version 1.0.0-dev.5. Could you please update, and see if its working for you ? |
Sure @sonikro. I will check and update you. |
Hi @sonikro, I updated the package and now it's returning an object with the parameter resolve_type. However, when I use the I confirmed that it was returning an object with the parameter resolve_type when I closed the sign in page (the resolve_type value was cancelled) after it was redirected. |
Hi, Can we get SignIn URL |
Hi, As per the documentation, the method below returns the object which has the parameter of type resolve_type .
flutter_okta_sample/lib/services/AuthService.dart
Line 37 in 27e0de3
When I tried to use it, it was not returning anything. Can you please help on this? Or let me know if I should ask this question to the author?
The text was updated successfully, but these errors were encountered: