Skip to content

Instantly share code, notes, and snippets.

View andrealvimc's full-sized avatar
💻
Never Stop Learning

André Alvim andrealvimc

💻
Never Stop Learning
View GitHub Profile
@andrealvimc
andrealvimc / settings.json
Last active June 28, 2024 17:04
Visual Studio Code config
{
"workbench.colorTheme": "Min Dark",
"symbols.hidesExplorerArrows": false,
"workbench.iconTheme": "symbols",
"editor.fontFamily": "JetBrains Mono",
"editor.fontSize": 14,
"editor.lineHeight": 1.8,
"editor.rulers": [80, 120],
"workbench.startupEditor": "newUntitledFile",
"editor.renderLineHighlight": "gutter",
@andrealvimc
andrealvimc / api.ts
Created May 27, 2021 18:38
Axios config refresh token and request queue
import axios, { AxiosError } from 'axios';
import { parseCookies, setCookie } from 'nookies'
let cookies = parseCookies();
let isRefreshing = false;
let failedRequestQueue = [];
export const api = axios.create({
{"lastUpload":"2021-12-06T20:13:46.772Z","extensionVersion":"v3.4.3"}