gin-jwt
gin-jwt copied to clipboard
Create struct for Login and Refresh response
At the following lines the JSON response is set by gin.H and i'm thinking about adding a struct to the package to better use it at other packages or for unit tests.
https://github.com/appleboy/gin-jwt/blob/633d983b91f09beefb1128c4558d4642a379c602/auth_jwt.go#L286-L304
is there any reason why the response structure is not made public to the package?
I created a branch at my branch https://github.com/appleboy/gin-jwt/compare/master...paulvollmer:jwt-response-struct
@appleboy let me know if i can send a PR.