diff --git a/src/contexts/SessionContext/SessionContext.tsx b/src/contexts/SessionContext/SessionContext.tsx index e891846d..75a8b03f 100644 --- a/src/contexts/SessionContext/SessionContext.tsx +++ b/src/contexts/SessionContext/SessionContext.tsx @@ -1,7 +1,8 @@ import { createContext, useCallback, useEffect, useState } from 'react'; -import { ISession, ISessionContext } from './types'; +import { ISessionContext } from './types'; import { SessionServices } from '@/service'; +import { ISession } from '@/service/sessions/types'; const SessionContext = createContext({} as ISessionContext); diff --git a/src/service/sessions/session.service.ts b/src/service/sessions/session.service.ts index e84d9f9d..f8c0f3ed 100644 --- a/src/service/sessions/session.service.ts +++ b/src/service/sessions/session.service.ts @@ -1,7 +1,6 @@ -import { ISession } from '../../contexts/SessionContext/types'; import { IServerResponse } from '../../types'; import { api } from '@/api'; -import { IAuthRequest, IAuthResponse } from './types'; +import { IAuthRequest, IAuthResponse, ISession } from './types'; const SessionServices = { auth: async (payload: IAuthRequest): Promise => {