-
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,2 @@ | ||
export {}; | ||
//# sourceMappingURL=electron-demo.d.ts.map |
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.
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 {}; | ||
//# sourceMappingURL=preload.d.ts.map |
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.
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,17 @@ | ||
import type { IpcMain, IpcRenderer } from 'electron'; | ||
declare class Passkey { | ||
private static instance; | ||
private handler; | ||
private platform; | ||
private domain; | ||
private constructor(); | ||
static getInstance(): Passkey; | ||
private handlePasskeyCreate; | ||
private handlePasskeyGet; | ||
attachCreateToRenderer(ipcRenderer: IpcRenderer, options: any): Promise<PublicKeyCredential>; | ||
attachGetToRenderer(ipcRenderer: IpcRenderer, options: any): Promise<PublicKeyCredential>; | ||
attachHandlersToMain(domain: string, ipcMain: IpcMain): void; | ||
static getPackageName(): string; | ||
} | ||
export = Passkey; | ||
//# sourceMappingURL=index.d.ts.map |
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.
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,51 @@ | ||
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'; | ||
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; | ||
} | ||
export interface PasskeyHandler { | ||
HandlePasskeyCreate(options: string): Promise<string>; | ||
HandlePasskeyGet(options: string): Promise<string>; | ||
} | ||
export interface PasskeyInterface { | ||
PasskeyHandler: new () => PasskeyHandler; | ||
} | ||
export {}; | ||
//# sourceMappingURL=types.d.ts.map |
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.
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,8 @@ | ||
export declare function arrayBufferToBase64(buffer: ArrayBuffer): string; | ||
export declare function base64ToArrayBuffer(base64: string): ArrayBuffer; | ||
export declare function mapPublicKey(rawString: string, isCreate: boolean): PublicKeyCredential; | ||
export declare enum PassKeyMethods { | ||
createPasskey = "create-passkey", | ||
getPasskey = "get-passkey" | ||
} | ||
//# sourceMappingURL=utils.d.ts.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.