-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f66f299
commit 3adaeef
Showing
7 changed files
with
71 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
export interface PublicKeyCredentialCreationOptions { | ||
rp: { | ||
id: string; | ||
name: string; | ||
}; | ||
user: { | ||
id: Buffer; | ||
name: string; | ||
displayName: string; | ||
}; | ||
challenge: Buffer; | ||
pubKeyCredParams: Array<{ | ||
type: string; | ||
alg: number; | ||
}>; | ||
timeout?: number; | ||
authenticatorSelection?: { | ||
authenticatorAttachment?: 'platform' | 'cross-platform'; | ||
requireResidentKey?: boolean; | ||
userVerification?: 'required' | 'preferred' | 'discouraged'; | ||
}; | ||
attestation?: 'none' | 'indirect' | 'direct' | 'enterprise'; | ||
extensions?: AuthenticationExtensionsClientInputs; | ||
} | ||
type ExtendedAuthenticatorTransport = AuthenticatorTransport | 'smart-card'; | ||
export interface CredentialDescriptor { | ||
id: string; | ||
transports: ExtendedAuthenticatorTransport[]; | ||
} | ||
export interface PublicKeyCredentialRequestOptions { | ||
rpId?: string; | ||
challenge: Buffer; | ||
allowCredentials?: Array<CredentialDescriptor>; | ||
userVerification?: 'required' | 'preferred' | 'discouraged'; | ||
timeout?: number; | ||
extensions?: AuthenticationExtensionsClientInputs; | ||
} | ||
export interface PasskeyOptions { | ||
publicKey: PublicKeyCredentialCreationOptions | PublicKeyCredentialRequestOptions; | ||
mediation?: 'conditional'; | ||
signal?: AbortSignal; | ||
} | ||
declare class Passkey { | ||
static handlePasskeyCreate(options: PasskeyOptions): Promise<string>; | ||
static handlePasskeyGet(options: PasskeyOptions): Promise<string>; | ||
} | ||
export default Passkey; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.