refactor(nestjs): hook up auth endpoints

This commit is contained in:
Ahmed Bouhuolia
2025-05-08 18:10:02 +02:00
parent 401b3dc111
commit f78d6efe27
26 changed files with 304 additions and 111 deletions

View File

@@ -137,13 +137,14 @@ export function useAuthenticatedAccount(props) {
['AuthenticatedAccount'],
{
method: 'get',
url: `account`,
url: `auth/account`,
},
{
select: (response) => response.data.data,
defaultData: {},
onSuccess: (data) => {
setEmailConfirmed(data.is_verified, data.email);
debugger;
setEmailConfirmed(data.verified, data.email);
},
...props,
},
@@ -160,7 +161,7 @@ export const useDashboardMeta = (props) => {
[t.DASHBOARD_META],
{ method: 'get', url: 'dashboard/boot' },
{
select: (res) => res.data.meta,
select: (res) => res.data,
defaultData: {},
...props,
},