UnENVerse 0.84.0
Local-first desktop secrets manager — TypeScript frontend
Loading...
Searching...
No Matches
remote-panel.ts File Reference

Functions

function export setRemoteFinishInitFn (fn:()=> Promise< void >)
 Authenticate as a sub-user, asking for a second-factor code only if one is actually required.
function startPing ()
function stopPing ()
function genId ()
function saveSaved (list:RemoteVaultConfig[])

Variables

import type { RemoteVaultConfig } from './types'
 import
let _pingInterval

Function Documentation

◆ setRemoteFinishInitFn()

function export setRemoteFinishInitFn ( fn:(),
Promise< void > )

Authenticate as a sub-user, asking for a second-factor code only if one is actually required.

The server tells us the difference: a correct password on an account with a confirmed factor comes back 401 with totp_required, which the store raises as TotpRequiredError. Prompting up front instead would show a code box to every user, most of whom have no factor and nothing to type into it.

Shared by the Remote panel and the unlock screen so the two cannot drift — the unlock screen already carries a bug history of diverging from this path.

◆ startPing()

function startPing ( )

◆ stopPing()

function stopPing ( )

◆ genId()

function genId ( )

◆ saveSaved()

function saveSaved ( list:RemoteVaultConfig[])

Variable Documentation

◆ type

import type { RemoteVaultConfig } from './types'

◆ import

import
Initial value:
{
st,
Settings,
inTauri,
applyUsersPanelVisibility,
resetViewState,
triggerRender,
} from './state'
Definition state.ts:83
Definition state.ts:238
Thrown when a password was accepted but the account also has a second factor.
Definition state.ts:224
The a, b list after "both changed:" in a conflict message, if there is one.
Definition state.ts:123
Definition state.ts:231
export const st
Definition state.ts:708

◆ _pingInterval

let _pingInterval