Skip to content
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(server-auth): WebAuthN support during SSR #10498

Merged
merged 4 commits into from
Apr 23, 2024

Conversation

dac09
Copy link
Collaborator

@dac09 dac09 commented Apr 22, 2024

This PR changes the following:
1. Moves webAuthN imports to be dynamic imports
This is because the dbauth-provider-web packages are still CJS only. When importing in an ESM environment (such as SSR/RSC server) - it complains that about ESM imports

2. Updates the default auth provider state for middleware auth
Middleware auth default state is almost the same as SPA default auth state. Except that loading is always false! Otherwise you can get stuck in a loading state forever.

Proof in the pudding!
Screenshot 2024-04-22 at 20 57 09

@dac09 dac09 requested a review from dthyresson April 22, 2024 13:53
@dac09 dac09 added the release:feature This PR introduces a new feature label Apr 22, 2024
@dac09 dac09 added this to the SSR milestone Apr 22, 2024
@dac09 dac09 merged commit 3f57976 into redwoodjs:main Apr 23, 2024
46 checks passed
@dac09 dac09 deleted the feat/serverauth-webauthn branch April 23, 2024 05:17
dac09 added a commit that referenced this pull request Apr 23, 2024
…g-gen-mw-p2

* 'main' of github.com:redwoodjs/redwood:
  feat(server-auth): WebAuthN support during SSR (#10498)
  Removes old HTML comments from CLI commands doc
  feat(cookieJar): Change cookie.get to directly return value (#10493)
@Josh-Walker-GM Josh-Walker-GM modified the milestones: SSR, v8.0.0 Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:feature This PR introduces a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants