λ沢.dev

lambdasawa cheatsheet

JWT

https://openid-foundation-japan.github.io/draft-ietf-oauth-json-web-token-11.ja.html

decode

browser

https://jwt.io/

cli

https://github.com/mike-engel/jwt-cli

brew install mike-engel/jwt-cli/jwt-cli
$ jwt decode -j eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
{
  "header": {
    "typ": "JWT",
    "alg": "HS256"
  },
  "payload": {
    "iat": 1516239022,
    "name": "John Doe",
    "sub": "1234567890"
  }
}

structure

verification