Skip to content

Commit

Permalink
refactor: add auth via credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
becem-gharbi committed May 22, 2023
1 parent c1161fc commit a766797
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,17 @@ const settings: LocalSettings = {
storage: storage,
appName: process.env.APP_NAME || "default",
},
adminAuth: {
type: "credentials",
users: [
{
username: "admin",
password:
"$2b$08$1DooD4I2bJVYmxEVF69L2e55N8KkO/dn3QMFwvCtt.tgrD9X7cB/m",
permissions: "*",
},
],
},
};

const app = express();
Expand Down

0 comments on commit a766797

Please sign in to comment.