added in oauth fo dev

This commit is contained in:
2021-11-15 14:49:44 +00:00
parent 891106bcc9
commit 7c9cc31d75
20 changed files with 137 additions and 97 deletions
+2
View File
@@ -13,6 +13,8 @@ class MyDocument extends Document {
let hasBasicAuth =
typeof process.env.BASIC_AUTH_CREDENTIALS != "undefined";
console.log(hasBasicAuth);
if (ctx.req && ctx.res) {
hasBasicAuth &&
(await basicAuthMiddleware(ctx.req, ctx.res, {