fix auth tests

This commit is contained in:
dswbx
2024-12-03 09:16:00 +01:00
parent 3c5bd95988
commit d6978f9873
2 changed files with 14 additions and 3 deletions

View File

@@ -39,7 +39,10 @@ describe("AppAuth", () => {
test("creates user on register", async () => {
const auth = new AppAuth(
{
enabled: true
enabled: true,
jwt: {
secret: "123456"
}
},
ctx
);
@@ -57,6 +60,9 @@ describe("AppAuth", () => {
disableConsoleLog();
const res = await app.request("/password/register", {
method: "POST",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify({
email: "some@body.com",
password: "123456"