Skip to content

Conversation

@dschenkelman
Copy link
Contributor

@dschenkelman dschenkelman commented Sep 9, 2025

Before this fix there is no way to set authorizationParams from code.

Example:

app.use(
  auth({
    authRequired: false,
    idpLogout: true,
    authorizationParams: {
      scope: “openid profile email offline_access”,
    },

scope would be ignored. Same for all other props. Moreover, you can only pass AUTH0_AUDIENCE via .env file but nothing else. In essence: audience can only be set, and it can only be set from .env.

This PR fixes that.

Copy link
Contributor

@jfromaniello jfromaniello left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jfromaniello jfromaniello merged commit 31a76cd into main Sep 9, 2025
2 checks passed
@jfromaniello jfromaniello deleted the fwdAuthParams branch September 9, 2025 17:54
@github-actions
Copy link

github-actions bot commented Sep 9, 2025

🎉 This PR is included in version 1.2.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants