@accounts/magic-link
Advanced tools
Comparing version 1.0.0-alpha-20231109134411-9db5d55b to 1.0.0-alpha-20231110150116-1eb474da
@@ -17,4 +17,7 @@ "use strict"; | ||
let AccountsMagicLink = class AccountsMagicLink { | ||
serviceName = 'magicLink'; | ||
server; | ||
options; | ||
db; | ||
constructor(options = {}, server, db) { | ||
this.serviceName = 'magicLink'; | ||
this.options = { ...defaultOptions, ...options }; | ||
@@ -21,0 +24,0 @@ if (db) { |
@@ -5,6 +5,5 @@ "use strict"; | ||
const getUserLoginTokens = (user) => { | ||
var _a, _b, _c; | ||
return (_c = (_b = (_a = user.services) === null || _a === void 0 ? void 0 : _a.magicLink) === null || _b === void 0 ? void 0 : _b.loginTokens) !== null && _c !== void 0 ? _c : []; | ||
return user.services?.magicLink?.loginTokens ?? []; | ||
}; | ||
exports.getUserLoginTokens = getUserLoginTokens; | ||
//# sourceMappingURL=user.js.map |
{ | ||
"name": "@accounts/magic-link", | ||
"version": "1.0.0-alpha-20231109134411-9db5d55b", | ||
"version": "1.0.0-alpha-20231110150116-1eb474da", | ||
"license": "MIT", | ||
@@ -32,4 +32,4 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"@accounts/server": "1.0.0-alpha-20231109134411-9db5d55b", | ||
"@accounts/types": "1.0.0-alpha-20231109134411-9db5d55b", | ||
"@accounts/server": "1.0.0-alpha-20231110150116-1eb474da", | ||
"@accounts/types": "1.0.0-alpha-20231110150116-1eb474da", | ||
"@types/bcryptjs": "2.4.6", | ||
@@ -43,5 +43,5 @@ "@types/lodash.set": "4.3.9", | ||
"peerDependencies": { | ||
"@accounts/server": "1.0.0-alpha-20231109134411-9db5d55b", | ||
"@accounts/server": "1.0.0-alpha-20231110150116-1eb474da", | ||
"graphql-modules": "^3.0.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
458
26585