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

chore(examples/auth): removes all client-side auth from rsc app #6258

Draft
wants to merge 4 commits into
base: beta
Choose a base branch
from

Conversation

jacobsfletch
Copy link
Member

@jacobsfletch jacobsfletch commented May 7, 2024

Description

Continuation of #5877. Removes all client-side auth (the auth provider, context, and useAuth hook) from the integrated App Router app that is included alongside Payload in the root Auth Example. Does so by memoizing the user on the server and threading it through as props to the client. Server actions have replaced the various authentication methods like login, update, logout, etc. Also adds back the missing users config which was removed after performing a fresh install of npx create-payload-app@beta. Inspired by @HarleySalas in this conversation.

  • I have read and understand the CONTRIBUTING.md document in this repository.

@jacobsfletch jacobsfletch changed the title Example/ssr auth chore(examples/auth): removes all client-side auth from rsc app May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant