aws-amplify / amplify-js

A declarative JavaScript library for application development using cloud services.
https://docs.amplify.aws/lib/q/platform/js
Apache License 2.0
9.44k stars 2.13k forks source link

fix(adapter-nextjs): make createAuthRouteHandlers interface work in both App and Pages routers #13840

Open HuiSF opened 2 months ago

HuiSF commented 2 months ago

Description of changes

Issue #, if available

Make the public handler function type as any to let the single function to be compatible with the type checks that happens in both the App router and Pages router.

Description of how you validated changes

Checklist

Checklist for repo maintainers

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.