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
)
.then((session) => {
console.log(session);
if (session.factors?.user?.id) {
return listAuthenticationMethodTypes(session.factors?.user?.id)
.then((methods) => {

View File

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