UNPKG
@e280/authlocal
Version:
latest (0.2.0-39)
0.2.0-39
0.2.0-38
0.2.0-37
0.2.0-36
0.2.0-35
0.2.0-34
0.2.0-33
0.2.0-32
0.2.0-31
0.2.0-30
0.2.0-29
0.2.0-28
0.2.0-27
0.2.0-26
0.2.0-25
0.2.0-24
0.2.0-23
0.2.0-22
0.2.0-21
0.2.0-20
0.2.0-19
User-sovereign login system for everybody
github.com/e280/authlocal
e280/authlocal
@e280/authlocal
/
x
/
trust
/
concepts
/
identity
/
identity.d.ts
5 lines
(4 loc)
•
258 B
TypeScript
View Raw
1
2
3
4
5
import
{
Identity
,
Nametag
}
from
"./types.js"
;
export
declare
function
generateIdentity
(
):
Promise
<
Identity
>;
export
declare
function
toNametag
(
{ id, label }: Identity
):
Nametag
;
export
declare
function
dedupeIdentities
(
identities: Identity[]
):
Identity
[];