Skip to content

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