logto-io / go

☁️ Logto Golang SDKs.
MIT License
17 stars 11 forks source link

chore: update jose dependency #123

Closed xiaoyijun closed 3 months ago

xiaoyijun commented 3 months ago

Summary

Since the go-jose dependency from https://github.com/square/go-jose is now deprecated, update jose to https://github.com/go-jose/go-jose according to the square/go-jose's official advice.

This PR also replaces math/rand with crypto/rand, since it's now depreacted, and it will casue the CI to fail:

Testing

Test locally and all UT passed.

Checklist

- [ ] .changeset - [ ] unit tests - [ ] integration tests - [ ] necessary TSDoc comments