import { ExtensibleObject } from '..' import { SignInResponse } from '../../@types/auth' export interface ProfileDto extends ExtensibleObject { email: string phoneNumber: string name: string surname: string } export interface UpdateProfileDto { name: string surname: string avatar?: File } export const isLoginSuccess = (data: unknown): data is SignInResponse => { return typeof data === 'object' && data !== null && 'access_token' in data && !!data.access_token }