-
Notifications
You must be signed in to change notification settings - Fork 4
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
Expose issuer as a worker service binding #78
base: main
Are you sure you want to change the base?
Conversation
src/index.ts
Outdated
} | ||
// If we move the rotation logic to a separate worker, we can define a rotation-specific named entry point. | ||
// https://developers.cloudflare.com/workers/runtime-apis/bindings/service-bindings/rpc/ | ||
export class IssuerHandler extends WorkerEntrypoint<Bindings> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from a review perspective, it could be worth keeping the methods unchanged (not moving them to a new class)
and declare the new class Issuer
below which would proxy method, possibly with different method signatures. for instance, I could imagine handleTokenRequest
to be have the following signature issue(request: TokenRequest)
ctx is also specific to this worker, that is hard to provide from another worker.
b41cbf0
to
4c42a25
Compare
.gitignore
Outdated
dist/* | ||
!dist/types/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why publish the dist folder? is this required for use as a submodule?
8219242
to
7075db4
Compare
1d1a13a
to
3c92805
Compare
957a513
to
89e6fe0
Compare
89e6fe0
to
4f3f256
Compare
f88c16b
to
e4e8c0c
Compare
e4e8c0c
to
ee2e11d
Compare
No description provided.