Skip to content

Commit

Permalink
Fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiodxa committed Dec 2, 2024
1 parent 0b2636b commit f3ef94c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export class OAuth2Strategy<User> extends Strategy<
this.client = new OAuth2Client(
options.clientId,
options.clientSecret,
options.redirectURI.toString(),
options.redirectURI?.toString() ?? null,
);
}

Expand Down

0 comments on commit f3ef94c

Please sign in to comment.