feat: add auth0 middleware

This commit is contained in:
Riccardo
2024-07-08 11:49:46 +02:00
parent 4aa1ef8463
commit 19d00d5153
7 changed files with 65 additions and 44 deletions

View File

@@ -1,12 +1,11 @@
'use client';
import { withPageAuthRequired } from '@auth0/nextjs-auth0/client';
import { CustomerForm, CustomerFormSchema } from '@utils/types';
import axios from 'axios';
import { useRouter } from 'next/navigation';
import { useEffect, useState } from 'react';
export default withPageAuthRequired(function SingleCustomerForm({
export default function SingleCustomerForm({
params
}: {
params: { id: string };
@@ -75,4 +74,4 @@ export default withPageAuthRequired(function SingleCustomerForm({
</button>
</div>
);
});
}