UNPKG

326 BTypeScriptView Raw
1/**
2 * @public
3 */
4export interface Identity {
5 /**
6 * A `Date` when the identity or credential will no longer be accepted.
7 */
8 readonly expiration?: Date;
9}
10/**
11 * @public
12 */
13export interface IdentityProvider<IdentityT extends Identity> {
14 (identityProperties?: Record<string, any>): Promise<IdentityT>;
15}