-
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,53 @@ | ||
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'; | ||
interface CredentialDescriptor { | ||
id: string; | ||
transports: ExtendedAuthenticatorTransport[]; | ||
} | ||
interface PublicKeyCredentialRequestOptions { | ||
rpId?: string; | ||
challenge: Buffer; | ||
allowCredentials?: Array<CredentialDescriptor>; | ||
userVerification?: 'required' | 'preferred' | 'discouraged'; | ||
timeout?: number; | ||
extensions?: AuthenticationExtensionsClientInputs; | ||
} | ||
interface PasskeyOptions { | ||
publicKey: PublicKeyCredentialCreationOptions | PublicKeyCredentialRequestOptions; | ||
mediation?: 'conditional'; | ||
signal?: AbortSignal; | ||
} | ||
declare class Passkey { | ||
private static instance; | ||
private handler; | ||
private platform; | ||
private constructor(); | ||
static getInstance(): Passkey; | ||
handlePasskeyCreate(options: PasskeyOptions): Promise<string>; | ||
handlePasskeyGet(options: PasskeyOptions): Promise<string>; | ||
static getPackageName(): string; | ||
} | ||
export = 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.