Skip to content
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

MWSDK.StartLogin does not return a onSuccess callback #2

Open
Zfinix opened this issue Feb 21, 2023 · 0 comments
Open

MWSDK.StartLogin does not return a onSuccess callback #2

Zfinix opened this issue Feb 21, 2023 · 0 comments
Assignees
Labels
bug Something isn't working 💚 contributions welcome

Comments

@Zfinix
Copy link

Zfinix commented Feb 21, 2023

MWSDK.StartLogin does not return an onSuccess callback, this is supposed to return a userInfo object

public func startLogin(call: FlutterMethodCall) {
        MWSDK.StartLogin(
            onSuccess: { userInfo in
                
                self.sendEvent(
                    event: EventsHelper.mapEvent(
                        name: EventsHelper.loginEvent,
                        data: MirrorWorldSDKAuthData.share.userInfo
                    )
                )
                
            },
            onFail: {
                self.onFetchFailed(code: 0, message: "login failed !")
            }
        )
}
    ```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working 💚 contributions welcome
Projects
None yet
Development

No branches or pull requests

3 participants