Comments (2)
I'm not familiar enough with what's available in a browser extension to give any recommendation. My only advice would be to either:
- Try to build a wrapper that implements the Storage interface.
- Fork this repo and change the code to support your needs.
from js-pkce.
Thanks for the response -- FYI, as far as I can tell, (1) is not possible due to what I mentioned:
The StorageArea API is asynchronous so it is not possible to build a Storage API shim around it to pass into the js-pkce storage config variable either.
In case you are not familiar with it, this is what is available in extensions: https://developer.chrome.com/docs/extensions/reference/storage/#usage. Basically, it's exactly the same as the Storage API but all async.
Understood re wontfix.
from js-pkce.
Related Issues (17)
- Support for custom params HOT 5
- Firefox sessionStorage Issues HOT 10
- `dist/PKCE.d.ts` is missing HOT 2
- PKCE.exchangeForAccessToken function return type is infered as Promise<any> HOT 8
- If I set state in using additionalParams object in authorizeUrl method then after checking response with exchangeForAccessToken I get error 'Invalid State' HOT 5
- token revoke HOT 1
- could you please export ITokenResponse interface from PKCE.d.ts ? HOT 3
- getting JSON parse error while running npm audit HOT 1
- not getting email data from requested scopes HOT 1
- Uncaught (in promise) Error: Cannot resolve "crypto" from ... HOT 3
- How can I get CSRF before exchangeForAccessToken? HOT 1
- id token HOT 4
- Add configuration to allow sending credentials HOT 5
- Unique code_challenge per request HOT 3
- PKCE.exchangeForAccessToken and error response HOT 2
- Request for an example HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from js-pkce.