-
Notifications
You must be signed in to change notification settings - Fork 980
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
feat(middleware): Add support for Middleware to SSR-Streaming server #9883
Conversation
Add serverAuthState
WIP: still failing with ArdaRequest
…dleware * 'main' of github.com:redwoodjs/redwood: chore(structure): switch to vitest (redwoodjs#9878) chore(cli): switch to vitest (redwoodjs#9863) feat(dbAuth): Refactor dbAuthHandler to support WebAPI Request events (redwoodjs#9835) fix(crwa): remove yarn-install option for yarn 1 (redwoodjs#9881) chore(esbuild): dedupe esbuild config (redwoodjs#9875) chore(esm): convert `@redwoodjs/cli-helpers` to ESM (redwoodjs#9872) fix(studio): Add version checks when first running Studio (redwoodjs#9876)
CookieJar clearing a cookie
WIP: Why is vitest failing?
}) => { | ||
// @NOTE: we "Sanitize" to remove encryptedSession and cookieHeader | ||
// not totally necessary, but it's nice to not have them in the DOM | ||
// @MARK: needs discussion! |
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.
What needs discussion? Can you and I discuss? I want to resolve this before merging
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.
I just want to call this out for awareness. It's harmless right now, but its possible a contribution or new code could leak information here.
Updates comments, some types Co-authored-by: Tobbe Lundberg <tobbe@tlundberg.com>
More comment tings Co-authored-by: Tobbe Lundberg <tobbe@tlundberg.com>
…eat/ssr-middleware * 'feat/ssr-middleware' of github.com:dac09/redwood: Apply suggestions from Tobbe's review Apply suggestions from Tobbe's review Update installation.md (redwoodjs#9887)
Co-authored-by: Tobbe Lundberg <tobbe@tlundberg.com>
…eat/ssr-middleware * 'feat/ssr-middleware' of github.com:dac09/redwood: Update packages/auth/src/AuthProvider/AuthProvider.tsx
This is a first pass at introducing middleware into the streaming server, so we can do auth on the server!
Very poor quality audio whistle stop tour of how we'd be using this: https://s.tape.sh/iMAq52op?s=1.25
Includes:
Outstanding:
whatwg-node
here: Initatiating PonyfillRequest with another PonyfillRequest misses properties in the constructor ardatan/whatwg-node#1109