16 lines
539 B
C#
16 lines
539 B
C#
using System;
|
|
using System.Threading.Tasks;
|
|
using Bit.App.Models;
|
|
|
|
namespace Bit.App.Abstractions
|
|
{
|
|
public interface IAccountsManager
|
|
{
|
|
void Init(Func<AppOptions> getOptionsFunc, IAccountsManagerHost accountsManagerHost);
|
|
Task NavigateOnAccountChangeAsync(bool? isAuthed = null);
|
|
Task StartDefaultNavigationFlowAsync(Action<AppOptions> appOptionsAction);
|
|
Task LogOutAsync(string userId, bool userInitiated, bool expired);
|
|
Task PromptToSwitchToExistingAccountAsync(string userId);
|
|
}
|
|
}
|