Skip to content

Instantly share code, notes, and snippets.


Vinicius Lima VinnyLima

View GitHub Profile
View junoautentication.js
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');
VinnyLima / ServicosGerais.tsx
Created Jul 7, 2020
Serviços gerais codigo
View ServicosGerais.tsx
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();