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

[RKOTLIN-1115] Add support for switching user #1816

Merged
merged 2 commits into from
Aug 7, 2024
Merged

[RKOTLIN-1115] Add support for switching user #1816

merged 2 commits into from
Aug 7, 2024

Conversation

rorbech
Copy link
Contributor

@rorbech rorbech commented Aug 6, 2024

This adds support for switching between logged in users with

public interface App {

    [....]

    /**
     * Switch current user.
     *
     * @param user the user that should be the new current user. The user must be one of the users
     * that are already logged in.
     * @throws IllegalStateException If the [user] is not logged in.
     */
    public fun switchUser(user: User)
}

Closes #1813

@rorbech rorbech requested a review from nirinchev August 7, 2024 07:15
@rorbech rorbech marked this pull request as ready for review August 7, 2024 07:19
@rorbech rorbech merged commit b6f141f into main Aug 7, 2024
82 checks passed
@rorbech rorbech deleted the cr/switch-user branch August 7, 2024 08:37
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ability to switch user
2 participants