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

Fix auth handler types when using custom handlers #1327

Merged
merged 6 commits into from
Jul 31, 2023

Conversation

adamjmcgrath
Copy link
Contributor

📋 Changes

Fix types for handleAuth when customizing the app and page router handlers with functions
Fix types for withPageAuthRequired when providing custom param names
Add some types tests using 'expect-type'

📎 References

fixes #1321
see #1235 (comment)

@adamjmcgrath adamjmcgrath requested a review from a team as a code owner July 28, 2023 16:24
@vercel
Copy link

vercel bot commented Jul 28, 2023

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

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
nextjs-auth0 ⬜️ Ignored (Inspect) Jul 31, 2023 8:13am

@adamjmcgrath adamjmcgrath merged commit a3bfdd8 into main Jul 31, 2023
6 checks passed
@adamjmcgrath adamjmcgrath deleted the fix-auth-handler-types branch July 31, 2023 09:07
@adamjmcgrath adamjmcgrath mentioned this pull request Jul 31, 2023
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.

Types not working for custom Next.js client
2 participants