Skip to content

Commit f46d75d

Browse files
committed
Extend the IdentityProvider with methods from the TBD RFC
1 parent a5596a1 commit f46d75d

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/IdentityProvider.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
11
export class IdentityProvider {
2-
// https://github.com/TBD54566975/janky-wallet/blob/main/rfc/web5-did-supported-methods.md
3-
/** This method can be used by clients to become aware of the DID methods supported by a wallet. */
2+
// https://github.com/TBD54566975/janky-wallet/blob/main/rfc/web5-did-supported-methods.md
3+
/** This method can be used by clients to become aware of the DID methods supported by a wallet. */
44
async supportedMethods(): Promise<string[]> {
55
return ['did:is', 'did:jwk', 'did:key'];
66
}
77

8+
// https://github.com/TBD54566975/janky-wallet/blob/main/rfc/web5-did-authn.md
9+
/** Initiates DID-based passwordless registration / login flows */
10+
async authn() {
11+
throw Error('Not implemented.');
12+
}
813

14+
// https://github.com/TBD54566975/janky-wallet/blob/main/rfc/web5-did-request.md
15+
async request() {
16+
throw Error('Not implemented.');
17+
}
918
}

0 commit comments

Comments
 (0)