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