Skip to content

Commit 36655df

Browse files
authored
Merge pull request #418 from auth0/docx/fix-snippet
Add missing `default` keyword to doc snippets
2 parents f653967 + bfc0142 commit 36655df

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

FAQ.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const afterCallback = (req, res, session, state) => {
3535
return session;
3636
};
3737

38-
export handleAuth({
38+
export default handleAuth({
3939
async callback(req, res) {
4040
try {
4141
await handleCallback(req, res, { afterCallback });

src/handlers/callback.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import { NextConfig } from '../config';
2222
* return session;
2323
* };
2424
*
25-
* export handleAuth({
25+
* export default handleAuth({
2626
* async callback(req, res) {
2727
* try {
2828
* await handleCallback(req, res, { afterCallback });
@@ -45,7 +45,7 @@ import { NextConfig } from '../config';
4545
* return session;
4646
* };
4747
*
48-
* export handleAuth({
48+
* export default handleAuth({
4949
* async callback(req, res) {
5050
* try {
5151
* await handleCallback(req, res, { afterCallback });

0 commit comments

Comments
 (0)