-
-
Notifications
You must be signed in to change notification settings - Fork 38
doc: migrate supabase auth guide to v3 #518
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
WalkthroughDocumentation updates under Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes
Possibly related PRs
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
Actionable comments posted: 2
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (2)
versioned_docs/version-3.x/recipe/_category_.ymlis excluded by!**/*.ymlversioned_docs/version-3.x/recipe/auth-integration/_category_.ymlis excluded by!**/*.yml
📒 Files selected for processing (6)
versioned_docs/version-3.x/modeling/attribute.md(1 hunks)versioned_docs/version-3.x/modeling/index.md(1 hunks)versioned_docs/version-3.x/modeling/model.md(6 hunks)versioned_docs/version-3.x/modeling/polymorphism.md(1 hunks)versioned_docs/version-3.x/modeling/relation.md(1 hunks)versioned_docs/version-3.x/recipe/auth-integration/supabase.md(1 hunks)
🧰 Additional context used
🪛 markdownlint-cli2 (0.18.1)
versioned_docs/version-3.x/modeling/relation.md
76-76: Hard tabs
Column: 1
(MD010, no-hard-tabs)
versioned_docs/version-3.x/recipe/auth-integration/supabase.md
13-13: Heading levels should only increment by one level at a time
Expected: h2; Actual: h3
(MD001, heading-increment)
🔇 Additional comments (6)
versioned_docs/version-3.x/modeling/attribute.md (1)
18-19: Formatting alignment looks good.The spacing adjustments to field definitions improve visual alignment in the code example without altering meaning or functionality.
versioned_docs/version-3.x/modeling/index.md (1)
35-35: Formatting alignment is consistent with other modeling docs.The spacing adjustment aligns the Post model's id field definition with the formatting standard being applied across the modeling documentation.
versioned_docs/version-3.x/modeling/polymorphism.md (1)
109-111: Section rename and clarifying text improve documentation accuracy.Renaming "Migration behavior" to "Database schema" more accurately reflects the section's focus on schema mapping. The added sentence clearly explains how the migration engine handles polymorphic model mapping.
versioned_docs/version-3.x/modeling/model.md (1)
38-38: Code example formatting alignment is consistent across file.The spacing adjustments throughout the file (field definitions and type/attribute alignment) are purely cosmetic and align with the formatting normalization applied across modeling documentation. All code examples remain syntactically correct.
Also applies to: 54-54, 98-98, 110-110, 112-112, 129-129, 139-139
versioned_docs/version-3.x/recipe/auth-integration/supabase.md (2)
25-65: Supabase SSR integration code example is clear and well-structured.The TypeScript example effectively demonstrates how to:
- Create a Supabase SSR client with cookie handling
- Extract authenticated user identity via
supabase.auth.getUser()- Pass user context to the ZenStack ORM via
db.$setAuth()The code follows best practices for server-side authentication and properly handles the Next.js server context.
67-69: Security warning is appropriate and well-placed.The warning correctly cautions against using
supabase.auth.getSession()due to lack of server-side validation, which is critical for security-conscious developers. This guidance prevents a common integration mistake.
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.