Skip to content

Commit

Permalink
Add local jwt (#1047)
Browse files Browse the repository at this point in the history
  • Loading branch information
LinkLeong authored May 5, 2023
1 parent 705bf1f commit 08c500c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion route/v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func InitV1Router() *gin.Engine {
r.GET("/v1/recover/:type", v1.GetRecoverStorage)
v1Group := r.Group("/v1")

v1Group.Use(jwt.JWT(
v1Group.Use(jwt.ExceptLocalhost(
func() (*ecdsa.PublicKey, error) {
return external.GetPublicKey(config.CommonInfo.RuntimePath)
},
Expand Down

0 comments on commit 08c500c

Please sign in to comment.