juanbzpy / next-authentication

Authentication & Authorization library for the Next.js framework
MIT License
57 stars 9 forks source link

Can't use `Router` because we need the application instance one #3

Closed juanbzpy closed 5 years ago

juanbzpy commented 5 years ago

We can't access Router directly from next/router so we should use instead a callback function so the user can handle the redirection or whatever they want to do afterwards