mirror of
				https://github.com/pelican-dev/panel.git
				synced 2025-11-04 15:36:52 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			8 lines
		
	
	
		
			213 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
		
			213 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
import http from '@/api/http';
 | 
						|
 | 
						|
export default async (code: string): Promise<string[]> => {
 | 
						|
    const { data } = await http.post('/api/client/account/two-factor', { code });
 | 
						|
 | 
						|
    return data.attributes.tokens;
 | 
						|
};
 |