Skip to content

Commit

Permalink
Add compiled assets
Browse files Browse the repository at this point in the history
  • Loading branch information
WyattMufson committed Aug 16, 2024
1 parent f66f299 commit 3adaeef
Show file tree
Hide file tree
Showing 7 changed files with 71 additions and 7 deletions.
7 changes: 3 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.idea

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
Expand Down Expand Up @@ -82,7 +81,7 @@ web_modules/

# Nuxt.js build / generate output
.nuxt
dist
# dist

# Gatsby files
.cache/
Expand Down Expand Up @@ -115,8 +114,8 @@ dist
.yarn/build-state.yml
.pnp.*

build
prebuilds
# build
# prebuilds

# Mac storage
.DS_Store
7 changes: 4 additions & 3 deletions .gitignore.prebuild → .gitignore.main
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.idea

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
Expand Down Expand Up @@ -81,7 +82,7 @@ web_modules/

# Nuxt.js build / generate output
.nuxt
# dist
dist

# Gatsby files
.cache/
Expand Down Expand Up @@ -114,8 +115,8 @@ web_modules/
.yarn/build-state.yml
.pnp.*

# build
# prebuilds
build
prebuilds

# Mac storage
.DS_Store
47 changes: 47 additions & 0 deletions dist/index.d.ts
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;
16 changes: 16 additions & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added prebuilds/darwin-arm64/electron-passkey.node
Binary file not shown.
Binary file added prebuilds/darwin-x64/electron-passkey.node
Binary file not shown.

0 comments on commit 3adaeef

Please sign in to comment.