-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import './ipcHandlers'; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export {}; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export declare const CREATE_CREDS = "WEBAUTHN-CREATE"; | ||
export declare const GET_CREDS = "WEBAUTHN-GET"; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export {}; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
export interface PublicKeyCredentialCreationOptions { | ||
rp: { | ||
id: string; | ||
name: string; | ||
}; | ||
user: { | ||
id: ArrayBuffer | string; | ||
name: string; | ||
displayName: string; | ||
}; | ||
challenge: ArrayBuffer | string; | ||
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 { | ||
private static instance; | ||
private handler; | ||
private constructor(); | ||
static getInstance(): Passkey; | ||
handlePasskeyCreate(options: PasskeyOptions): Promise<string>; | ||
handlePasskeyGet(options: PasskeyOptions): Promise<string>; | ||
static getPackageName(): string; | ||
} | ||
export default Passkey; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.