Comments (3)
For anyone looking at this issue I found the answer using jose, the secret needs to be imported using importPKCS8
.
There is likely an equivalent way with cloudflare-worker-jwt.
from cloudflare-worker-jwt.
Having the same issue, do you have an example?
from cloudflare-worker-jwt.
Hey @zer0stars , if you are using the Device Check api from Apple then Apple will return this error when you are testing your app via XCode, if you deploy to Test Flight then it works - there is nothing wrong with the JWT and "Missing or badly formatted authorization token
" really means that Apple will not accept it as it is coming from a device it does not trust. I ended up writing about this in this tutorial.
from cloudflare-worker-jwt.
Related Issues (20)
- HMAC "jwk" key import requires a JSON Web Key with Key Type parameter ("kty") equal to "oct" (encountered "RSA") HOT 3
- Verify always returns false. HOT 2
- Type definition does not allow for `kid`
- Allow passing CryptoKey directly
- Decoding the payload results in garbled text when the JWT contains non-ASCII characters
- JSON Web Key (JWK) not working with RS256 algorithm HOT 6
- JwtPayload is too lax
- Cannot find module ... @tsndr/cloudflare-worker-jwt/utils HOT 9
- algo validation missing HOT 1
- Feature request - clockTolerance HOT 2
- verify function fail HOT 5
- Error: EXPIRED
- Not handling tokens correctly (or at least discrepant) HOT 2
- Full verification of Cloudflare Access token
- kid not passed
- Make verify to return the decoded token
- Why does this not work with normal nodejs? HOT 1
- [CF Pages Sveltkit Server-side] ReferenceError: CryptoKey is not defined
- `throwError` does not throw on invalid signature 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 cloudflare-worker-jwt.