Skip to content

Commit

Permalink
Fix getChallenge url
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisfisher committed Jul 26, 2024
1 parent 38182a2 commit d72246d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@authsignal/node",
"version": "1.1.0",
"version": "1.1.1",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/authsignal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class Authsignal {
public async getChallenge(request: ChallengeRequest): Promise<ChallengeResponse> {
const {userId, action} = request;

const urlParams = action ? `?action=${action}` : undefined;
const urlParams = action ? `?action=${action}` : "";

const url = `${this.apiBaseUrl}/users/${userId}/challenge${urlParams}`;

Expand Down

0 comments on commit d72246d

Please sign in to comment.