Skip to content

Commit

Permalink
Add missing keyword to doc snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
Widcket committed Jun 14, 2021
1 parent f653967 commit bfc0142
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down
4 changes: 2 additions & 2 deletions src/handlers/callback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand All @@ -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 });
Expand Down

0 comments on commit bfc0142

Please sign in to comment.