@rivascva/dt-idl 1.1.67 → 1.1.68

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18,7 +18,7 @@ func GetAuthMiddleware(secret string) func(http.Handler) http.Handler {
18
18
  responder := responder.NewStandardResponder(logger.NewConsoleLoggerWithPrefix("GetAuthMiddleware:"), "ERROR")
19
19
  return func(next http.Handler) http.Handler {
20
20
  return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
21
- // check if the request is for the login endpoint
21
+ // check if the request is a login endpoint
22
22
  if slices.Contains([]string{"/v1/login", "/v1/login/provider"}, r.URL.Path) {
23
23
  next.ServeHTTP(w, r)
24
24
  return
@@ -32,7 +32,7 @@ func GetAuthMiddleware(secret string) func(http.Handler) http.Handler {
32
32
  return
33
33
  }
34
34
 
35
- // validate the JWT token
35
+ // validate the token
36
36
  token, err := jwt.ValidateToken(arr[1], secret)
37
37
  if err != nil {
38
38
  responder.WriteError(w, http.StatusUnauthorized, "invalid token")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rivascva/dt-idl",
3
- "version": "1.1.67",
3
+ "version": "1.1.68",
4
4
  "description": "Dream Trade - Interface Definition Language",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",