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

Fix some return types #100

Merged
merged 1 commit into from
Oct 4, 2024
Merged

Fix some return types #100

merged 1 commit into from
Oct 4, 2024

Conversation

PaulAsjes
Copy link
Collaborator

Upgrades the workos-node version, also fixes some inconsistencies with the return types of some of the helper methods.

@@ -188,12 +188,12 @@ async function refreshSession({

return {
sessionId,
user: session.user,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Here we were accidentally returning the user, impersonator and accessToken from the old session instead of the new one.

@PaulAsjes PaulAsjes merged commit 5fd855c into main Oct 4, 2024
@PaulAsjes PaulAsjes deleted the pma/consistent-returns branch October 4, 2024 21:04
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