esdee
esdee
CDCloudflare Developers
Created by esdee on 1/17/2024 in #workers-help
Anyone have a n example of Validating Cf-Access-Jwt-Assertion from a worker
I found https://github.com/panva/jose which works great for my use
2 replies
CDCloudflare Developers
Created by esdee on 4/5/2023 in #miniflare
Continuing into my testing for workers
Ah thank you - that makes sense. Idid make some progress in testing within miniflare, see here - https://discord.com/channels/595317990191398933/1092907590968692926/1093246414777233529 but I think its quite fragile.
3 replies
CDCloudflare Developers
Created by esdee on 4/4/2023 in #miniflare
I m trying to test some worker code
In jest.config.js I added the following
testEnvironmentOptions: {
bindings: { PRIVATE: 'test private', PUBLIC: 'test public' },
d1Databases: ['__D1_BETA__<name-of-db>'],
d1Persist: true,
},
testEnvironmentOptions: {
bindings: { PRIVATE: 'test private', PUBLIC: 'test public' },
d1Databases: ['__D1_BETA__<name-of-db>'],
d1Persist: true,
},
And in my test after const env = getMiniflareBindings() I added env.<name-of-db> = __D1_BETA__<name-of-db>
2 replies
CDCloudflare Developers
Created by esdee on 4/4/2023 in #miniflare
I m trying to test some worker code
If anyone else is stuck with this problem, I did the following:
2 replies