Skip to content

Commit 3c9f1e8

Browse files
committed
feat(sdk-core): replace local passkey type stubs with @bitgo/passkey-crypto re-exports
1 parent 43e5dd1 commit 3c9f1e8

1 file changed

Lines changed: 1 addition & 18 deletions

File tree

  • modules/sdk-core/src/bitgo/passkey
Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1 @@
1-
// TODO: replace with: export type { WebAuthnOtpDevice } from '@bitgo/public-types'
2-
export interface WebAuthnOtpDevice {
3-
id: string; // serialized MongoDB _id — used for DELETE
4-
credentialId: string; // from authenticatorInfo.credID — used for PRF eval map
5-
prfSalt?: string;
6-
isPasskey?: boolean;
7-
extensions?: Record<string, boolean>;
8-
}
9-
10-
// Stays local permanently — never moves to public-types
11-
export interface WebAuthnProvider {
12-
create(options: PublicKeyCredentialCreationOptions): Promise<PublicKeyCredential>;
13-
get(
14-
options: PublicKeyCredentialRequestOptions & {
15-
evalByCredential?: Record<string, string>;
16-
}
17-
): Promise<{ otpCode: string; prfOutput: ArrayBuffer | undefined; credentialId: string }>;
18-
}
1+
export type { WebAuthnOtpDevice, WebAuthnProvider, PasskeyAuthResult, PasskeyGetOptions } from '@bitgo/passkey-crypto';

0 commit comments

Comments
 (0)