gin-jwt icon indicating copy to clipboard operation
gin-jwt copied to clipboard

Create struct for Login and Refresh response

Open paulvollmer opened this issue 6 years ago • 1 comments

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?

paulvollmer avatar May 09 '19 19:05 paulvollmer

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.

paulvollmer avatar May 09 '19 19:05 paulvollmer