Skip to content

Commit

Permalink
Merge pull request #418 from auth0/docx/fix-snippet
Browse files Browse the repository at this point in the history
Add missing `default` keyword to doc snippets
  • Loading branch information
adamjmcgrath committed Jun 15, 2021
2 parents f653967 + bfc0142 commit 36655df
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 36655df

Please sign in to comment.