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

Login details are not persisted #40

Closed
arhmnsh opened this issue Sep 4, 2016 · 7 comments
Closed

Login details are not persisted #40

arhmnsh opened this issue Sep 4, 2016 · 7 comments

Comments

@arhmnsh
Copy link

arhmnsh commented Sep 4, 2016

AccountKit.getCurrentAccount() doesn't return user details once the app has been closed.

@gaguirre
Copy link
Collaborator

gaguirre commented Sep 6, 2016

@arhmnsh could you post the repro steps?

I did the following in iOS and it worked

  1. Login with email
  2. See the Logout button and the account info
  3. Close and open the app again, wait one second and see the account info

@arhmnsh
Copy link
Author

arhmnsh commented Sep 9, 2016

@gaguirre I tried that with SMS. Doesn't work.

  1. Login with email
  2. See the Logout button and the account info
  3. Close and open the app again, see the Login button

Right now, I've solved it by saving logindetails on AsyncStorage. So, when the app starts cold, I look for logindetails in AsyncStorage, if not present, show the login button.

@gaguirre
Copy link
Collaborator

gaguirre commented Sep 9, 2016

Ok, I'll try with SMS. It may be an Account Kit SDK's issue, because it works with the email.
Do you know if this happen with Android too?

@gaguirre
Copy link
Collaborator

gaguirre commented Sep 9, 2016

I can't reproduce the error neither with SMS nor email.
screen shot 2016-09-09 at 10 48 19 am

@gaguirre
Copy link
Collaborator

@arhmnsh did you try again with the new version?

@arhmnsh
Copy link
Author

arhmnsh commented Oct 1, 2016

@gaguirre I tried it on Android and it works fine now. Thanks mate! :)

@gaguirre
Copy link
Collaborator

gaguirre commented Oct 3, 2016

You're welcome @arhmnsh!

@gaguirre gaguirre closed this as completed Oct 3, 2016
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

2 participants