Skip to content

Commit

Permalink
Fox callbackURL in authz request (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
niwsa authored Mar 17, 2022
1 parent b958238 commit 7857211
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,10 @@ export class OAuth2Strategy<
);
params.set("response_type", "code");
params.set("client_id", this.clientID);
params.set("redirect_uri", this.callbackURL);
params.set(
"redirect_uri",
this.getCallbackURL(new URL(request.url)).toString()
);
params.set("state", state);

let url = new URL(this.authorizationURL);
Expand Down

0 comments on commit 7857211

Please sign in to comment.