Skip to content

[FEAT] Active Org Support#30

Merged
andrew-propelauth merged 5 commits intomainfrom
feat/active-org
May 19, 2024
Merged

[FEAT] Active Org Support#30
andrew-propelauth merged 5 commits intomainfrom
feat/active-org

Conversation

@itailevi98
Copy link
Copy Markdown

@itailevi98 itailevi98 commented May 16, 2024

Background

This PR introduces the concept of "Active Orgs" -- it may be the case that when a user is in many orgs, the access token becomes too big with the org information. As such, we should allow a way for the user to get an access token specific for their org. This adds a function to fetch this active org access token, as well as handles some retry/time expiration logic.

Video

https://www.loom.com/share/6acc5295622a40daaaca5d4fa1a1be58

Copy link
Copy Markdown
Contributor

@andrew-propelauth andrew-propelauth left a comment

Choose a reason for hiding this comment

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

lgtm - could you also bump the version in the package.json?

@itailevi98
Copy link
Copy Markdown
Author

lgtm - could you also bump the version in the package.json?

done!

@itailevi98
Copy link
Copy Markdown
Author

Note: renamed the function in the JS lib from getAccessTokenForActiveOrg to getAccessTokenForOrg, so that it is the same between the react and JS libraries.

cc @pfvatterott

Copy link
Copy Markdown
Contributor

@andrew-propelauth andrew-propelauth left a comment

Choose a reason for hiding this comment

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

lgtm

@andrew-propelauth andrew-propelauth merged commit 8730831 into main May 19, 2024
@andrew-propelauth andrew-propelauth deleted the feat/active-org branch May 19, 2024 19:11
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