You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/11/10 11:36:00 UTC

[GitHub] [apisix-dashboard] moonming commented on a change in pull request #768: fix: used dashboard add consumer of jwt, would have an error when get the jwt token

moonming commented on a change in pull request #768:
URL: https://github.com/apache/apisix-dashboard/pull/768#discussion_r520495657



##########
File path: api/internal/handler/consumer/consumer.go
##########
@@ -105,6 +105,13 @@ func (h *Handler) Create(c droplet.Context) (interface{}, error) {
 	}
 	input.ID = input.Username
 
+	if _, ok := input.Plugins["jwt-auth"]; ok {
+		jwt := input.Plugins["jwt-auth"].(map[string]interface{})
+		jwt["exp"] = 86400

Review comment:
       Please add issue for it




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org