Next.js 14.1.4 App Router HandleLogin Override to Gmail (google-oauth2) Social, State Mismatch

The Github for @auth0/nextjs-auth states there’s a way to override the login handler, & would’ve saved all my troubles, yet only has an example for Page Router & doesn’t work in App Router. Perhaps it’s a user error, how would you properly translate this to App Router?:

Example

Override the login handler

import { handleAuth, handleLogin } from '@auth0/nextjs-auth0';

export default handleAuth({
  login: async (req, res) => {
    try {
      await handleLogin(req, res, {
        authorizationParams: { connection: 'github' }
      });
    } catch (error) {
      console.error(error);
    }
  }
});