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

Wrong user interface? #25

Closed
lukaskratzel opened this issue Jan 22, 2024 · 1 comment
Closed

Wrong user interface? #25

lukaskratzel opened this issue Jan 22, 2024 · 1 comment
Assignees

Comments

@lukaskratzel
Copy link

The return value of await sdk.sessions().getCurrentUser(jwt); has a form, that doesn't match the User interface. This is an example return value:

User {
  authenticated: false,
  id: '',
  name: '',
  email: '',
  phoneNumber: ''
}
@incorbador
Copy link
Contributor

user is not an interface but a class. Maybe an old version of node-sdk (pre v2) has been used to test here => I also saw a change in the wizard markdowns that supports that theory :)

I think there is no problem here, getCurrentUser just returns a User object (and that does of course not comply to that interface)

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