@next-auth/neo4j-adapter
Advanced tools
Comparing version 0.1.1-next.292 to 0.1.1-next.295
@@ -64,7 +64,8 @@ "use strict"; | ||
async createSession(data) { | ||
const session = data; | ||
const { userId, ...s } = utils_1.format.to(data); | ||
await write(`MATCH (u:User { id: $data.userId }) | ||
CREATE (s:Session $data) | ||
CREATE (u)-[:HAS_SESSION]->(s)`, session); | ||
return session; | ||
CREATE (s:Session) | ||
SET s = $data.s | ||
CREATE (u)-[:HAS_SESSION]->(s)`, { userId, s }); | ||
return data; | ||
}, | ||
@@ -101,3 +102,3 @@ async getSessionAndUser(sessionToken) { | ||
}) | ||
SET v += $data`, data); | ||
SET v = $data`, data); | ||
return data; | ||
@@ -104,0 +105,0 @@ }, |
{ | ||
"name": "@next-auth/neo4j-adapter", | ||
"version": "0.1.1-next.292+ef1bff0", | ||
"version": "0.1.1-next.295+e6915fa", | ||
"description": "neo4j adapter for next-auth.", | ||
@@ -46,3 +46,3 @@ "homepage": "https://next-auth.js.org", | ||
}, | ||
"gitHead": "ef1bff04788505105f119c1f1b7457dea3338566" | ||
"gitHead": "e6915fa1dcba9b12f26bed55cddcb3b3bcd7b07c" | ||
} |
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
12362
202