Golang-jwt

  • jwt.ParseWithClaims(accessToken)

  • ParseUnverified(tokenString, claims) split token on ., make sure contains three parts

token = &Token{Raw: tokenString}

headerBytes

eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9

eyJDbGllbnRJRCI6ImM5ZjBhMmM1LTIxY2QtNDhiYS05MGJkLTA3NmUwYjIxZDQzNSIsIlRva2VuVVVJRCI6ImYzOWM2NjQwLTA1ZjEtNGU3Ny04ZTcyLWQ2ZDdmZjAyMzVjMiIsIktleUlEIjoiM2FiMTFiZDgtY2NhMC00YjMyLTlmNDctNTg2MWIwN2ZjZTc3IiwiZXhwIjoxNjM2NjI1NDM3LCJpYXQiOjE2MzY2MjQ4Mzd9

NYmcVkPDNSWSzWlATPLdxTN14dIhQiYk87jCjwC_4YsB5IiaAtezPPRVFr--7QKFHNpObjMjBRjCJcqpi9uCrQ