Skip to content

Avoid decoding jwt twice #440

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 3 commits into from
May 2, 2025
Merged

Avoid decoding jwt twice #440

merged 3 commits into from
May 2, 2025

Conversation

na-ka-na
Copy link
Contributor

@na-ka-na na-ka-na commented May 1, 2025

Description

Currently the Session::authenticate() function (which runs on every request and consumes CPU cycles) is decoding the jwt twice unnecessarily. This small refactor fixes that

Documentation

Does this require changes to the WorkOS Docs? E.g. the API Reference or code snippets need updates.

No

Currently the Session::authenticate() function (which runs on every request and consumes CPU cycles) is decoding the jwt twice unnecessarily. This small refactor fixes that
@na-ka-na na-ka-na requested a review from a team as a code owner May 1, 2025 20:38
@na-ka-na na-ka-na requested a review from dandorman May 1, 2025 20:38
Copy link
Contributor

@gcarvelli gcarvelli left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution!

@gcarvelli gcarvelli merged commit bf960d7 into workos:main May 2, 2025
6 checks passed
@gcarvelli
Copy link
Contributor

This change is released in release v5.20.2.

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

Successfully merging this pull request may close these issues.

2 participants