-
Notifications
You must be signed in to change notification settings - Fork 22
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 support for organizationId
parameter when signing in or refreshing session
#73
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add some instructions to the readme on how and when to use refreshSession
?
package.json
Outdated
@@ -21,7 +21,7 @@ | |||
"test": "echo \"Error: no test specified\" && exit 1" | |||
}, | |||
"dependencies": { | |||
"@workos-inc/node": "7.14.0", | |||
"@workos-inc/node": "7.18.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tiny nit: we're on 7.20.0
as of today.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tiny wordsmithing nit, otherwise good!
Co-authored-by: Paul Asjes <[email protected]>
Makes the following changes to the public interface:
organizationId
parameter togetSignInUrl
refreshSession
helper function that also accepts anorganizationId
parameter`Internally, it the middleware is updated to pass the current
org_id
from theaccess_token
when automatically refreshing sessions, in order to preserve the currently authorized organization.