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

Always ask "Create an account for..." #25

Closed
jun-hak opened this issue Jan 12, 2020 · 1 comment
Closed

Always ask "Create an account for..." #25

jun-hak opened this issue Jan 12, 2020 · 1 comment

Comments

@jun-hak
Copy link

jun-hak commented Jan 12, 2020

I have a question.
I sign in with apple a my Application, and i log out.
Then i try to sign in it, then i asked to create an account not to sign in ....

In my app, this screen always pop up when i sign in.
https://i.imgur.com/BPFfoRR.png

but i want other screen below if user have signed up my application .
https://i.imgur.com/pbhTRzj.png

The main code below..

final AuthorizationResult result = await AppleSignIn.performRequests([
  AppleIdRequest(requestedScopes: [Scope.email, Scope.fullName])
]);
switch (result.status) {
  case AuthorizationStatus.authorized:
    final AppleIdCredential auth = result.credential;
    final OAuthProvider oAuthProvidewr =
        OAuthProvider(providerId: "apple.com");
    final AuthCredential credential = oAuthProvidewr.getCredential(
        idToken: String.fromCharCodes(auth.identityToken),
        accessToken: String.fromCharCodes(auth.authorizationCode));
@jun-hak
Copy link
Author

jun-hak commented Jan 14, 2020

It works on device.

@jun-hak jun-hak closed this as completed Jan 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant