Skip to content

Better error handling for circular references in custom auth tokens #1247

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

Merged
merged 2 commits into from
Jan 27, 2025

Conversation

MaxAake
Copy link
Contributor

@MaxAake MaxAake commented Jan 24, 2025

It is quite easy for a user to provide an object with a circular reference in the parameters of a custom auth token, despite this being impossible to send over Bolt. The current handling for this error is not very clear, this PR ensures an understandable error is thrown

Copy link
Contributor

@StephenCathcart StephenCathcart left a comment

Choose a reason for hiding this comment

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

Nice fix 👍

@MaxAake MaxAake merged commit ae16fa3 into 5.0 Jan 27, 2025
37 checks passed
@MaxAake MaxAake deleted the Circular-auth-tokens branch January 27, 2025 13:01
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