Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a new mutatePayload option #446

Merged
merged 1 commit into from
Mar 2, 2018

Conversation

jondubois
Copy link
Contributor

@jondubois jondubois commented Feb 21, 2018

The mutatePayload option allows you to get an updated reference to the raw token payload after claims have been applied to it but before it has been encoded. Default behaviour is unchanged since mutatePayload defaults to false.

Added tests.

Closes #357

Another simple (maybe more elegant) solution could have been to pass the signed-but-not-encoded payload as an extra argument to the callback but that wouldn't work with the synchronous version of the function.

@jondubois jondubois force-pushed the apply-options-to-payload branch from 3429b8d to e728018 Compare February 21, 2018 22:45
This option allows you to keep a reference to the raw token payload after claims have been applied to it but before it has been encoded.
@jondubois jondubois force-pushed the apply-options-to-payload branch from e728018 to bd28b7a Compare February 21, 2018 22:48
@ziluvatar ziluvatar merged commit d6d7c5e into auth0:master Mar 2, 2018
@ziluvatar
Copy link
Contributor

Thanks @jondubois , released on v8.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants