From bfc0142f44e56591b929a8e876ee5532854becc5 Mon Sep 17 00:00:00 2001 From: Rita Zerrizuela Date: Mon, 14 Jun 2021 13:48:51 -0300 Subject: [PATCH] Add missing keyword to doc snippet --- FAQ.md | 2 +- src/handlers/callback.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 });