@budibase/backend-core 2.23.10 → 2.23.11

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.
@@ -138,7 +138,6 @@ export default function (
138
138
  } catch (err: any) {
139
139
  authenticated = false
140
140
  console.error(`Auth Error: ${err.message}`)
141
- console.error(err)
142
141
  // remove the cookie as the user does not exist anymore
143
142
  clearCookie(ctx, Cookie.Auth)
144
143
  }
@@ -187,7 +186,6 @@ export default function (
187
186
  }
188
187
  } catch (err: any) {
189
188
  console.error(`Auth Error: ${err.message}`)
190
- console.error(err)
191
189
  // invalid token, clear the cookie
192
190
  if (err?.name === "JsonWebTokenError") {
193
191
  clearCookie(ctx, Cookie.Auth)
@@ -12,7 +12,7 @@ export async function errorHandling(ctx: any, next: any) {
12
12
  if (status >= 400 && status < 500) {
13
13
  console.warn(err)
14
14
  } else {
15
- console.error(err)
15
+ console.error("Got 400 response code", err)
16
16
  }
17
17
 
18
18
  let error: APIError = {
@@ -68,7 +68,6 @@ export async function strategyFactory(
68
68
  verify
69
69
  )
70
70
  } catch (err: any) {
71
- console.error(err)
72
71
  throw new Error(`Error constructing google authentication strategy: ${err}`)
73
72
  }
74
73
  }
@@ -103,7 +103,6 @@ export async function strategyFactory(
103
103
  strategy.name = "oidc"
104
104
  return strategy
105
105
  } catch (err: any) {
106
- console.error(err)
107
106
  throw new Error(`Error constructing OIDC authentication strategy - ${err}`)
108
107
  }
109
108
  }
@@ -142,7 +141,6 @@ export async function fetchStrategyConfig(
142
141
  callbackURL: callbackUrl,
143
142
  }
144
143
  } catch (err) {
145
- console.error(err)
146
144
  throw new Error(
147
145
  `Error constructing OIDC authentication configuration - ${err}`
148
146
  )
@@ -26,7 +26,6 @@ export const getMigrationsDoc = async (db: any) => {
26
26
  if (err.status && err.status === 404) {
27
27
  return { _id: DocumentType.MIGRATIONS }
28
28
  } else {
29
- console.error(err)
30
29
  throw err
31
30
  }
32
31
  }