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

currentSession return null at login #156

Open
yukulele opened this issue May 16, 2020 · 0 comments
Open

currentSession return null at login #156

yukulele opened this issue May 16, 2020 · 0 comments

Comments

@yukulele
Copy link

yukulele commented May 16, 2020

at login time, if you make call to currentSession() and make a 2nd call before first is resolved, you get null

way to reproduce the bug

auth.currentSession().then(session => console.log('currentSession 1', session))
auth.currentSession().then(session => console.log('currentSession 2', session))
auth.currentSession().then(session => console.log('currentSession 3', session))
  • exec npm run start:demo
  • click "Log in" button
  • finalize login process

expected result

console should display:

"currentSession 1",  Object {...}
"currentSession 2",  Object {...}
"currentSession 3",  Object {...}

actual result

console show:

"currentSession 2",  null
"currentSession 3",  null
"currentSession 1",  Object {...}
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