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

Implement User.state (v12) #5686

Closed
elle-j opened this issue Apr 3, 2023 · 0 comments · Fixed by #5712
Closed

Implement User.state (v12) #5686

elle-j opened this issue Apr 3, 2023 · 0 comments · Fixed by #5712

Comments

@elle-j
Copy link
Contributor

elle-j commented Apr 3, 2023

It should be possible to access the state (UserState) on a user. Implementation is missing for v12.

get state(): UserState {
  throw new Error("Not yet implemented");
}

Also, the UserState enum needs to be updated to align with this to:

enum UserState {
  /** Authenticated and available to communicate with services. */
  LoggedIn = "LoggedIn",
  /** Logged out, but ready to be logged in. */
  LoggedOut = "LoggedOut",
  /** Removed from the app entirely. */
  Removed = "Removed",
}

(Similar issue for v pre-12: Issue 5203)

@elle-j elle-j mentioned this issue Apr 5, 2023
9 tasks
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant