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

Allow to override the user prop in server-side rendered pages [SDK-3560] #800

Merged
merged 1 commit into from
Sep 1, 2022

Conversation

Widcket
Copy link
Contributor

@Widcket Widcket commented Sep 1, 2022

  • All new/changed/fixed functionality is covered by tests (or N/A)
  • I have added documentation for all new/changed functionality (or N/A)

📋 Changes

This PR updates the server-side withPageAuthRequired such as if the developer passes their own user prop, it does not get overridden with the one from the SDK.

📎 References

Fixes #722

🎯 Testing

A couple of unit tests were added. The changes were also tested manually using the kitchen sink sample app, for both object and promise-based props.

This code
Screen Shot 2022-08-31 at 23 10 30

Results in
Screen Shot 2022-08-31 at 22 41 09

@Widcket Widcket added the CH: Added PR is adding feature or functionality label Sep 1, 2022
@vercel
Copy link

vercel bot commented Sep 1, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated
nextjs-auth0 ⬜️ Ignored (Inspect) Sep 1, 2022 at 2:18AM (UTC)

@Widcket Widcket marked this pull request as ready for review September 1, 2022 02:18
@Widcket Widcket requested a review from a team as a code owner September 1, 2022 02:18
@adamjmcgrath adamjmcgrath merged commit 9a479c0 into vNext Sep 1, 2022
@adamjmcgrath adamjmcgrath deleted the feature/override-user-prop branch September 1, 2022 10:50
@adamjmcgrath adamjmcgrath mentioned this pull request Nov 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CH: Added PR is adding feature or functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants