diff --git a/authentication/src/components/consentForm.tsx b/authentication/src/components/consentForm.tsx index eb3f7a2..60a43cb 100644 --- a/authentication/src/components/consentForm.tsx +++ b/authentication/src/components/consentForm.tsx @@ -13,15 +13,15 @@ import { Button } from '@/components/ui/button'; interface ConsentFormProps { request: OAuth2ConsentRequest; - onAccept: (challenge: string, scopes: string[], remember: boolean) => void; - onReject: (challenge: string) => void; + onAcceptAction: (challenge: string, scopes: string[], remember: boolean) => void; + onRejectAction: (challenge: string) => void; } export default function ConsentForm( { request, - onAccept, - onReject, + onAcceptAction, + onRejectAction, }: ConsentFormProps, ) { @@ -37,7 +37,7 @@ export default function ConsentForm( .toSession() .then(({ data }) => setSession(data)) .catch(() => router.push('/flow/login')); - }, []); + }, [router]); return ( <> @@ -106,12 +106,12 @@ export default function ConsentForm(