import {Account} from "projects/mastodon-api/src/public-api";

export interface AuthenticationState {
    registeringApplication: boolean;
    applicationRegistered: boolean;
    authorizingUser: boolean;
    instanceName?: string;
    accessToken?: string;
    account?: Account;
    id?: string;
    appName?: string;
    website?: string;
    redirectUrl?: string;
    clientId?: string;
    clientSecret?: string;
    vapidKey?: string;
}

export const initialState: AuthenticationState = {
    registeringApplication: false,
    applicationRegistered: false,
    authorizingUser: false,
}
