Skip to content

Instantly share code, notes, and snippets.

View VinnyLima's full-sized avatar
🏬
Working

Vinicius Lima VinnyLima

🏬
Working
View GitHub Profile
@VinnyLima
VinnyLima / ServicosGerais.tsx
Created July 7, 2020 13:22
Serviços gerais codigo
const ServicosGerais: React.FC = () => {
const [started, setStarted] = useState('Iniciar Tarefa');
const [habilit, setHabilit] = useState(false);
const [tasks, setTasks] = useState<TaskData[]>([]);
const [tasksFinish, setTasksFinish] = useState<TaskLocal[]>([]);
const refNutton = useRef();
const { signOut, user } = useAuth();
import FormData from 'form-data';
import JunoToken from '../models/JunoToken.Model';
import JunoApi from '../providers/PaymentProviders/Juno.Providers';
import JunoApiAuth from '../providers/PaymentProviders/JunoAuthSand.Providers';
import encodeBase64 from 'nodejs-base64-encode';
import qs from 'querystring';
const generateJunoToken = async () => {
/*const tokenExists = await JunoToken.query().modify('activeToken');