@rivascva/dt-idl 1.1.125 → 1.1.127
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.
package/dist/index.d.ts
CHANGED
|
@@ -1247,7 +1247,7 @@ interface components$1 {
|
|
|
1247
1247
|
message: string;
|
|
1248
1248
|
};
|
|
1249
1249
|
/** @enum {string} */
|
|
1250
|
-
ErrorCode: "ERROR" | "
|
|
1250
|
+
ErrorCode: "ERROR" | "USER_ALREADY_EXISTS" | "USER_NOT_FOUND";
|
|
1251
1251
|
};
|
|
1252
1252
|
responses: {
|
|
1253
1253
|
/** @description Login success */
|
|
@@ -1695,7 +1695,7 @@ declare const isTradeServiceError: (error: unknown) => error is {
|
|
|
1695
1695
|
};
|
|
1696
1696
|
declare const isUserServiceError: (error: unknown) => error is {
|
|
1697
1697
|
status: number;
|
|
1698
|
-
code: "ERROR" | "
|
|
1698
|
+
code: "ERROR" | "USER_ALREADY_EXISTS" | "USER_NOT_FOUND";
|
|
1699
1699
|
message: string;
|
|
1700
1700
|
};
|
|
1701
1701
|
declare const isAssetServiceError: (error: unknown) => error is {
|
|
@@ -22,8 +22,13 @@ func GetAuthMiddleware(accessTokenSecret string) func(http.Handler) http.Handler
|
|
|
22
22
|
|
|
23
23
|
return func(next http.Handler) http.Handler {
|
|
24
24
|
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
|
25
|
-
// check if the request path is
|
|
26
|
-
|
|
25
|
+
// check if the request path is no-auth endpoint
|
|
26
|
+
endpoints := []string{
|
|
27
|
+
"/v1/auth/login/firebase",
|
|
28
|
+
"/v1/auth/signup/firebase",
|
|
29
|
+
"/v1/images",
|
|
30
|
+
}
|
|
31
|
+
if slices.Contains(endpoints, r.URL.Path) {
|
|
27
32
|
next.ServeHTTP(w, r)
|
|
28
33
|
return
|
|
29
34
|
}
|
package/package.json
CHANGED
|
@@ -173,7 +173,7 @@ export interface components {
|
|
|
173
173
|
message: string;
|
|
174
174
|
};
|
|
175
175
|
/** @enum {string} */
|
|
176
|
-
ErrorCode: "ERROR" | "
|
|
176
|
+
ErrorCode: "ERROR" | "USER_ALREADY_EXISTS" | "USER_NOT_FOUND";
|
|
177
177
|
};
|
|
178
178
|
responses: {
|
|
179
179
|
/** @description Login success */
|