diff --git a/FAQ.md b/FAQ.md index 661fc178b..7ab13681d 100644 --- a/FAQ.md +++ b/FAQ.md @@ -35,7 +35,7 @@ const afterCallback = (req, res, session, state) => { return session; }; -export handleAuth({ +export default handleAuth({ async callback(req, res) { try { await handleCallback(req, res, { afterCallback }); diff --git a/src/handlers/callback.ts b/src/handlers/callback.ts index badf0f76f..f1a0ad7f5 100644 --- a/src/handlers/callback.ts +++ b/src/handlers/callback.ts @@ -22,7 +22,7 @@ import { NextConfig } from '../config'; * return session; * }; * - * export handleAuth({ + * export default handleAuth({ * async callback(req, res) { * try { * await handleCallback(req, res, { afterCallback }); @@ -45,7 +45,7 @@ import { NextConfig } from '../config'; * return session; * }; * - * export handleAuth({ + * export default handleAuth({ * async callback(req, res) { * try { * await handleCallback(req, res, { afterCallback });