Freddie Rice

Results 9 comments of Freddie Rice

I'm also interested in this feature. I'm not a maintainer, but it looks like you're breaking the type signature of the Limiter constructor. Another approach could be to add limiter...

I resolved a go mod conflict, but then forgot to run `go mod tidy` -- should work now.

Sorry about that. I got it to pass the build and test portion in my forked repo. Now I'm stuck at a linting error that says I can't use `init()`...

The unit tests in the `token` package would stop working. I think the `init` function is the right approach in this case, because we are configuring the `jwt` package before...

Moved the variable. The linter didn't seem to run right on my fork, but at least the tests did.

there we go! all passed :sweat_smile: https://github.com/freddierice/go-pkgz-auth/actions/runs/7563891254/job/20597114793

The order of "aud" and "iss" are different because the new version of the library changed the types of each of the members. "aud" is now a union type of...

For reference: https://pkg.go.dev/github.com/golang-jwt/jwt/[email protected]#RegisteredClaims vs https://pkg.go.dev/github.com/golang-jwt/jwt#StandardClaims

Field ordering doesn't matter for golang's `json.Unmarshal` functions. Unfortunately I can't put any more time into this, but feel free to take/leave whichever parts you want.