Skip to content

Instantly share code, notes, and snippets.

View abnerfs's full-sized avatar

Abner Santos abnerfs

  • Nubank
  • São Paulo, SP, Brazil
  • 17:10 (UTC -03:00)
View GitHub Profile
@yogthos
yogthos / clojure-beginner.md
Last active April 20, 2026 21:55
Clojure beginner resources

Introductory resources

@soulmachine
soulmachine / jwt-expiration.md
Last active April 7, 2026 13:18
How to deal with JWT expiration?

First of all, please note that token expiration and revoking are two different things.

  1. Expiration only happens for web apps, not for native mobile apps, because native apps never expire.
  2. Revoking only happens when (1) uses click the logout button on the website or native Apps;(2) users reset their passwords; (3) users revoke their tokens explicitly in the administration panel.

1. How to hadle JWT expiration

A JWT token that never expires is dangerous if the token is stolen then someone can always access the user's data.

Quoted from JWT RFC:

@letanure
letanure / estados-cidades.json
Last active May 1, 2026 12:29
JSON estados cidades do brasil, dividido por estados. segunda lista atualizada em 2020, dados do IBGE
{
"estados": [
{
"sigla": "AC",
"nome": "Acre",
"cidades": [
"Acrelândia",
"Assis Brasil",
"Brasiléia",
"Bujari",