From caa62cba1c28436d56098826e5ad601af0ce950c Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Mon, 26 Apr 2021 15:44:28 +0100 Subject: [PATCH] Adding auth endpoints to no auth list. --- packages/worker/src/api/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/worker/src/api/index.js b/packages/worker/src/api/index.js index df346c8e0e..d0e60ffcd2 100644 --- a/packages/worker/src/api/index.js +++ b/packages/worker/src/api/index.js @@ -4,7 +4,12 @@ const zlib = require("zlib") const { routes } = require("./routes") const { buildAuthMiddleware } = require("@budibase/auth").auth -const NO_AUTH_ENDPOINTS = ["/api/admin/users/first"] +const NO_AUTH_ENDPOINTS = [ + "/api/admin/users/first", + "/api/admin/auth", + "/api/admin/auth/google", + "/api/admin/auth/google/callback", +] const router = new Router()