Answers for "echo apikey auth"

0

echo apikey auth

e := echo.New()
e.Use(middleware.KeyAuthWithConfig(middleware.KeyAuthConfig{
  KeyLookup: "query:api-key",
  Validator: func(key string, c echo.Context) (bool, error) {
			return key == "valid-key", nil
		},
}))
Posted by: Guest on May-20-2021

Browse Popular Code Answers by Language