Skip to content

Commit f5277ae

Browse files
committed
fix(api-request): prevent requesting app endpoint without id
1 parent 1b228e2 commit f5277ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/methods/api-request.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ const apiRequest = client => {
109109
return retry(delayMs, error)
110110
}
111111

112-
if (auth.row && config) {
112+
if (auth.row && auth.row.application_id && config) {
113113
// not authorized by auth scope ?
114114
// mark returned error object
115115
error.appErrorLog = true

0 commit comments

Comments
 (0)