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

TokenManager storage options #266

Merged
merged 3 commits into from
Nov 8, 2019
Merged

Conversation

aarongranick-okta
Copy link
Contributor

@aarongranick-okta aarongranick-okta commented Nov 7, 2019

  • Adds a new option tokenManager.storageKey
  • Adds a new built-in storage provider type: "memory"
  • Allows custom storage provider

Related GH issues:
#207
#215
#211

@@ -20,7 +20,8 @@ function setupSync(options) {
redirectUri: 'https://example.com/redirect',
tokenManager: {
expireEarlySeconds: options.tokenManager.expireEarlySeconds || 0,
storage: options.tokenManager.type,
storage: options.tokenManager.storage,
Copy link
Contributor

Choose a reason for hiding this comment

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

💯 to this change - having the tests match the naming is one of those subtle things that pays off so much down the line.

@aarongranick-okta aarongranick-okta merged commit e28fe3a into master Nov 8, 2019
@aarongranick-okta aarongranick-okta deleted the ag-storage-OKTA-226199 branch November 8, 2019 22:21
@hboylan
Copy link

hboylan commented Nov 13, 2019

I just found this solution in the README for master branch and implemented it in my client before realizing the new version hadn't been released. Can we get a npm publish? 🙏

@aarongranick-okta
Copy link
Contributor Author

@hboylan We are planning to publish this week. I will update with another comment when it is published.

@aarongranick-okta
Copy link
Contributor Author

@hboylan New version (2.10.0) has been published. Hopefully everything works as expected for you! If you see any issues, please open a new issue. Thanks for using our SDK.

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.

3 participants