date type in stub

This commit is contained in:
peintnermax
2024-04-04 11:42:15 +02:00
parent 33bca1dd93
commit 166eac6d8c
2 changed files with 3 additions and 4 deletions

View File

@@ -20,6 +20,7 @@ export async function POST(request: NextRequest) {
authRequestId authRequestId
) )
.then((session) => { .then((session) => {
console.log(session);
if (session.factors?.user?.id) { if (session.factors?.user?.id) {
return listAuthenticationMethodTypes(session.factors?.user?.id) return listAuthenticationMethodTypes(session.factors?.user?.id)
.then((methods) => { .then((methods) => {

View File

@@ -6,8 +6,7 @@ describe("login", () => {
data: { data: {
details: { details: {
sequence: 859, sequence: 859,
changeDate: changeDate: new Date("2024-04-04T09:40:55.577Z"),
"Wed Feb 21 2018 12:16:50 GMT+0100 (Central European Standard Time)",
resourceOwner: "220516472055706145", resourceOwner: "220516472055706145",
}, },
sessionId: "221394658884845598", sessionId: "221394658884845598",
@@ -21,8 +20,7 @@ describe("login", () => {
data: { data: {
session: { session: {
id: "221394658884845598", id: "221394658884845598",
creationDate: creationDate: new Date("2024-04-04T09:40:55.577Z"),
"Wed Feb 21 2018 12:16:50 GMT+0100 (Central European Standard Time)",
changeDate: "1519211810999", changeDate: "1519211810999",
sequence: 859, sequence: 859,
factors: { factors: {