1import http from '@/api/http'; 2 3export default async (code: string, password: string): Promise<string[]> => { 4 const { data } = await http.post('/api/client/account/two-factor', { code, password }); 5 6 return data.attributes.tokens; 7}; 8 9