ironsmile / euterpe

Self-hosted music streaming server 🎶 with RESTful API and Web interface. Think of it as your very own Spotify! ☁️🎧
https://listen-to-euterpe.eu
GNU General Public License v3.0
534 stars 43 forks source link

maint: upgrade gbrlsnchs/jwt to v3 #41

Closed trilliot closed 2 years ago

trilliot commented 2 years ago

Related to issue #27, the gbrlsnchs/jwt package needed an upgrade to a non backward-compatible version. This PR bumps it from v1 to v3 with the appropriate code changes.

Please let me know if changes are needed to better suit the project conventions.

Personal note: there is a world in which I would avoid creating an new JWT algorithm for each issue or verification, but that's probably out of the scope of this PR.

coveralls commented 2 years ago

Pull Request Test Coverage Report for Build 1646595980


Changes Missing Coverage Covered Lines Changed/Added Lines %
src/webserver/handler_login.go 10 14 71.43%
src/webserver/handler_login_token.go 8 15 53.33%
<!-- Total: 35 46 76.09% -->
Files with Coverage Reduction New Missed Lines %
src/webserver/handler_create_qr_token.go 4 65.96%
<!-- Total: 4 -->
Totals Coverage Status
Change from base Build 1646366683: -0.3%
Covered Lines: 3113
Relevant Lines: 3864

💛 - Coveralls
ironsmile commented 2 years ago

First of all, thank you for the PR. This is a change I've been postponing for quite a while now.