auth0 / go-jwt-middleware

A Middleware for Go Programming Language to check for JWTs on HTTP requests
MIT License
1.07k stars 205 forks source link

go-jose v2 is deprecated, should be upgraded to v3 #239

Closed ewintr closed 8 months ago

ewintr commented 8 months ago

Checklist

Description

Development of the go-jose module apparently has moved to a new organization, according to the README: https://github.com/square/go-jose

The v2 that is currently used is deprecated, v3 is in the new repository. It's probably best to update the dependencies to use this new version.

Reproduction

  1. Open go.mod
  2. See a line that says gopkg.in/go-jose/go-jose.v2 v2.6.2

Go JWT Middleware version

v2.2.0

Go version

any

adam2k commented 8 months ago

@ewintr it looks like https://github.com/go-jose/go-jose/releases/tag/v2.6.2 was released last month. Since v3 would be a breaking change it might not be urgent to change since v2 is still being maintained. Where did you see that v2 is being sunset or deprecated?

ewintr commented 8 months ago

Oops, my mistake. The repository I linked to was deprecated, but not the version. And I see you already migrated to the new repository. So there is no problem. I'll close the issue.