infobloxopen / atlas-app-toolkit

This repository provides common Go utilities and helpers that are reusable from project-to-project. The goal is to prevent code duplication by encouraging teams to use and contribute to toolkit libraries. The toolkit is not a framework. Rather, it is a set of (mostly gRPC-related) plugins and helpers.
Apache License 2.0
99 stars 115 forks source link

Render numbers read from JWTs as integers #339

Closed Calebjh closed 2 years ago

Calebjh commented 2 years ago

Currently, if there is a long JWT field, e.g. "ID":"123456789", this function will parse and return it as 1.23456789E8, because all JWT numbers are treated as float64s. This could still be wonky if there are really big numbers in the JWT field, since they'll now render with lots of zeros, but this is probably better for the majority of cases.