same issue as with auth.go, expiry was a string causing the library to see it as expired.
Also fixed some inconsistent uses of snake case.