switchToUser

abstract suspend fun switchToUser(user: User): UserService.SwitchToUserResult

Called to activate the specified user.

The current user's session is ended.

Return

SwitchToUserResult.Success if the User has been activated or was already active. SwitchToUserResult.Failure if the call failed.