2019-12-23 01:03:44 +00:00
|
|
|
import http from '@/api/http';
|
|
|
|
|
2022-07-03 18:27:37 +00:00
|
|
|
export default async (code: string, password: string): Promise<string[]> => {
|
|
|
|
const { data } = await http.post('/api/client/account/two-factor', { code, password });
|
2020-07-03 05:23:25 +00:00
|
|
|
|
|
|
|
return data.attributes.tokens;
|
2019-12-23 01:03:44 +00:00
|
|
|
};
|