Skip to content

Commit

Permalink
Allow calling passkey.signIn with no parameters (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
hwhmeikle committed Dec 15, 2023
1 parent 0755f81 commit 7635cc6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@authsignal/browser",
"version": "0.3.4",
"version": "0.3.5",
"type": "module",
"main": "dist/index.js",
"module": "dist/index.js",
Expand Down
1 change: 1 addition & 0 deletions src/passkey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export class Passkey {
return addAuthenticatorResponse?.accessToken;
}

async signIn(): Promise<string | undefined>;
async signIn(params?: {token: string}): Promise<string | undefined>;
async signIn(params?: {autofill: boolean}): Promise<string | undefined>;
async signIn(params?: {token?: string; autofill?: boolean} | undefined) {
Expand Down

0 comments on commit 7635cc6

Please sign in to comment.