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

Update usage-next-13.mdx: Still use authConfig #844

Merged
merged 3 commits into from
Oct 25, 2023

Conversation

tordans
Copy link
Contributor

@tordans tordans commented Oct 10, 2023

This is how the auth docs show it (https://blitzjs.com/docs/blitz-auth-with-next#add-blitz-server) and I assume all blitz apps with auth are set up. It is confusing when the app router docs show it differently.

At least I assume that the blitz-server still needs to share the cookie name(?)

This is how the auth docs show it (https://blitzjs.com/docs/blitz-auth-with-next#add-blitz-server) and I assume all blitz apps with auth are set up. It is confusing when the app router docs show it differently.
@vercel
Copy link

vercel bot commented Oct 10, 2023

@tordans is attempting to deploy a commit to the Blitz Team on Vercel.

A member of the Team first needs to authorize it.

siddhsuresh
siddhsuresh previously approved these changes Oct 13, 2023
Copy link
Member

@siddhsuresh siddhsuresh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR

@tordans
Copy link
Contributor Author

tordans commented Oct 25, 2023

@siddhsuresh I updated the PR to follow your setup in https://github.com/blitz-js/blitz/pull/4146/files which has a separate file src/blitz-auth-config.ts. I had to apply this setup for our migration as well, because importing directly caused issues because I imported from a server component file into a client component (or was it the other way around…?). Using the patter you used in your PR solves this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants