Skip to content

armgit / papra

Public Imported from GitHub
0

The minimalistic document archiving platform.

184 B
Raw Blame
export function getSecretFromTotpUri({ totpUri }: { totpUri: string }): string {
  try {
    return new URL(totpUri).searchParams.get('secret') ?? '';
  } catch {
    return '';
  }
}