diff --git a/src/features/oauth/confirm.component.tsx b/src/features/oauth/confirm.component.tsx index 64947360..9f328ac4 100644 --- a/src/features/oauth/confirm.component.tsx +++ b/src/features/oauth/confirm.component.tsx @@ -5,8 +5,8 @@ import { FC } from 'react'; import { Button } from '@/components/ui/button'; +import useRequestTokenReference from '@/services/hooks/auth/use-request-token-reference'; import useSession from '@/services/hooks/auth/use-session'; -import useClient from '@/services/hooks/client/use-client'; interface Props {} @@ -18,12 +18,24 @@ const Confirm: FC = () => { const { user } = useSession(); - const { data: client } = useClient({ - client_reference: reference, - }); + const { mutate, isPending } = useRequestTokenReference(); + + const handleConfirm = () => { + mutate({ + params: { + client_reference: reference, + scope: scopes!, + }, + }); + }; return ( - );