Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

next-auth

Package Overview
Dependencies
Maintainers
1
Versions
715
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

next-auth - npm Package Compare versions

Comparing version 2.0.0-beta.25 to 2.0.0-beta.26

2

dist/adapters/typeorm/index.js

@@ -1,1 +0,1 @@

"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0,require("reflect-metadata");var _typeorm=require("typeorm"),_crypto=require("crypto"),_nodemailer=_interopRequireDefault(require("nodemailer")),_nodemailerSmtpTransport=_interopRequireDefault(require("nodemailer-smtp-transport")),_errors=require("../../lib/errors"),_models=_interopRequireDefault(require("./models"));function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}function asyncGeneratorStep(a,b,c,d,e,f,g){try{var h=a[f](g),i=h.value}catch(a){return void c(a)}h.done?b(i):Promise.resolve(i).then(d,e)}function _asyncToGenerator(a){return function(){var b=this,c=arguments;return new Promise(function(d,e){function f(a){asyncGeneratorStep(h,d,e,f,g,"next",a)}function g(a){asyncGeneratorStep(h,d,e,f,g,"throw",a)}var h=a.apply(b,c);f(void 0)})}}function ownKeys(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function _objectSpread(a){for(var b,c=1;c<arguments.length;c++)b=null==arguments[c]?{}:arguments[c],c%2?ownKeys(Object(b),!0).forEach(function(c){_defineProperty(a,c,b[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach(function(c){Object.defineProperty(a,c,Object.getOwnPropertyDescriptor(b,c))});return a}function _defineProperty(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}var Adapter=(a,b)=>{function c(){if("development"===process.env.NODE_ENV){for(var a=arguments.length,b=Array(a),c=0;c<a;c++)b[c]=arguments[c];console.log("[DEBUG]",...b)}}function d(){return e.apply(this,arguments)}function e(){return e=_asyncToGenerator(function*(){function b(){return d.apply(this,arguments)}function d(){return d=_asyncToGenerator(function*(){o=(0,_typeorm.getConnection)(a.name),o.isConnected||(o=yield o.connect())}),d.apply(this,arguments)}function e(){return g.apply(this,arguments)}function g(){return g=_asyncToGenerator(function*(a){c("Create user account",a);try{var b=new h(a.name,a.email,a.image);return yield(0,_typeorm.getManager)().save(b)}catch(a){return console.error("CREATE_USER_ERROR",a),Promise.reject(new _errors.CreateUserError(a))}}),g.apply(this,arguments)}function i(){return k.apply(this,arguments)}function k(){return k=_asyncToGenerator(function*(a){return c("Update user account",a),!1}),k.apply(this,arguments)}function m(){return n.apply(this,arguments)}function n(){return n=_asyncToGenerator(function*(a){c("Get user by ID",a);try{return o.getRepository(h).findOne({id:a})}catch(a){return console.error("GET_USER_BY_ID_ERROR",a),Promise.reject(new Error("GET_USER_BY_ID_ERROR",a))}}),n.apply(this,arguments)}function p(){return q.apply(this,arguments)}function q(){return q=_asyncToGenerator(function*(a,b){c("Get user account by provider account ID",a,b);try{var d=yield o.getRepository(f).findOne({providerId:a,providerAccountId:b});return d?o.getRepository(h).findOne({id:d.userId}):null}catch(a){return console.error("GET_USER_BY_POVIDER_ACCOUNT_ID_ERROR",a),Promise.reject(new Error("GET_USER_BY_POVIDER_ACCOUNT_ID_ERROR",a))}}),q.apply(this,arguments)}function r(){return s.apply(this,arguments)}function s(){return s=_asyncToGenerator(function*(a){return c("Get user account by email address",a),!1}),s.apply(this,arguments)}function t(){return u.apply(this,arguments)}function u(){return u=_asyncToGenerator(function*(a){return c("Get user account by credentials",a),!1}),u.apply(this,arguments)}function v(){return w.apply(this,arguments)}function w(){return w=_asyncToGenerator(function*(a){return c("Delete user account",a),!1}),w.apply(this,arguments)}function x(){return y.apply(this,arguments)}function y(){return y=_asyncToGenerator(function*(a,b,d,e,g,h,i){c("Link provider account",a,b,d,e,g,h,i);try{var j=new f(a,b,d,e,g,h,i);return(0,_typeorm.getManager)().save(j)}catch(a){return console.error("LINK_ACCOUNT_ERROR",a),Promise.reject(new Error("LINK_ACCOUNT_ERROR",a))}}),y.apply(this,arguments)}function z(){return A.apply(this,arguments)}function A(){return A=_asyncToGenerator(function*(a,b,d){return c("Unlink provider account",a,b,d),!1}),A.apply(this,arguments)}function B(){return C.apply(this,arguments)}function C(){return C=_asyncToGenerator(function*(a){c("Create session for user",a);try{var b=new j(a.id);return(0,_typeorm.getManager)().save(b)}catch(a){return console.error("CREATE_SESSION_ERROR",a),Promise.reject(new Error("CREATE_SESSION_ERROR",a))}}),C.apply(this,arguments)}function D(){return E.apply(this,arguments)}function E(){return E=_asyncToGenerator(function*(a){c("Get session by Session ID",a);try{var b=yield o.getRepository(j).findOne({sessionToken:a});return b}catch(a){return console.error("GET_SESSION_ERROR",a),Promise.reject(new Error("GET_SESSION_ERROR",a))}}),E.apply(this,arguments)}function F(){return G.apply(this,arguments)}function G(){return G=_asyncToGenerator(function*(a){c("Delete session by Session ID",a);try{return yield o.getRepository(j).delete({sessionToken:a})}catch(a){return console.error("DELETE_SESSION_ERROR",a),Promise.reject(new Error("DELETE_SESSION_ERROR",a))}}),G.apply(this,arguments)}function H(){return I.apply(this,arguments)}function I(){return I=_asyncToGenerator(function*(a,b,d,e,f,g){c("Create verification request",a);try{var{site:h}=g,{callbackUrl:i}=f,{from:j,server:k,port:m,secure:n,username:o,password:p,subject:q,text:r,html:s}=f,t=(0,_crypto.createHash)("sha256").update("".concat(d).concat(e)).digest("hex"),u=new l(a,t),v=yield(0,_typeorm.getManager)().save(u);return yield new Promise((e,f)=>{_nodemailer.default.createTransport((0,_nodemailerSmtpTransport.default)({host:k,port:m,secure:n,auth:{user:o,pass:p}})).sendMail({to:a,from:j,subject:q({site:h})||"Sign in",text:r?r({email:a,url:b,token:d,site:h,callbackUrl:i}):b,html:s?s({email:a,url:b,token:d,site:h,callbackUrl:i}):"<p><a href=\"".concat(b,"\">Sign in</a></p>")},d=>d?(console.error("SEND_EMAIL_VERIFICATION_ERROR",a,d),f(new Error("SEND_EMAIL_VERIFICATION_ERROR",d))):void(c("Sent verification email",a,b),e()))}),v}catch(a){return console.error("CREATE_EMAIL_VERIFICATION_ERROR",a),Promise.reject(new Error("CREATE_EMAIL_VERIFICATION_ERROR",a))}}),I.apply(this,arguments)}function J(){return K.apply(this,arguments)}function K(){return K=_asyncToGenerator(function*(a,b,d){c("Get verification request",a,b);try{var e=(0,_crypto.createHash)("sha256").update("".concat(b).concat(d)).digest("hex"),f=yield o.getRepository(l).findOne({email:a,token:e});return c("GET_EMAIL_VERIFICATION",f),f}catch(a){return console.error("GET_EMAIL_VERIFICATION_ERROR",a),Promise.reject(new Error("GET_EMAIL_VERIFICATION_ERROR",a))}}),K.apply(this,arguments)}function L(){return M.apply(this,arguments)}function M(){return M=_asyncToGenerator(function*(a,b){c("Delete verification request",a,b);try{return yield o.getRepository(l).delete({email:a})}catch(a){return console.error("DELETE_EMAIL_VERIFICATION_ERROR",a),Promise.reject(new Error("DELETE_EMAIL_VERIFICATION_ERROR",a))}}),M.apply(this,arguments)}if(!o)try{o=yield(0,_typeorm.createConnection)(a)}catch(a){"AlreadyHasActiveConnectionError"===a.name?yield b():console.error("ADAPTER_CONNECTION_ERROR",a)}else yield b();return Promise.resolve({createUser:e,updateUser:i,getUser:m,getUserByProviderAccountId:p,getUserByEmail:r,getUserByCredentials:t,deleteUser:v,linkAccount:x,unlinkAccount:z,createSession:B,getSession:D,deleteSession:F,createEmailVerification:H,getEmailVerification:J,deleteEmailVerification:L})}),e.apply(this,arguments)}b=_objectSpread(_objectSpread({},{}),b);var f=b.Account?b.Account.model:_models.default.Account.model,g=b.Account?b.Account.schema:_models.default.Account.schema,h=b.User?b.User.model:_models.default.User.model,i=b.User?b.User.schema:_models.default.User.schema,j=b.Session?b.Session.model:_models.default.Session.model,k=b.Session?b.Session.schema:_models.default.Session.schema,l=b.EmailVerification?b.EmailVerification.model:_models.default.EmailVerification.model,m=b.EmailVerification?b.EmailVerification.schema:_models.default.EmailVerification.schema,n={name:"default",autoLoadEntities:!0,entities:[new _typeorm.EntitySchema(g),new _typeorm.EntitySchema(i),new _typeorm.EntitySchema(k),new _typeorm.EntitySchema(m)],logging:!1};a=_objectSpread(_objectSpread({},n),a),c("Development mode; debug output enabled");var o=null;return{getAdapter:d}},_default={Adapter,Models:_models.default};exports.default=_default;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0,require("reflect-metadata");var _typeorm=require("typeorm"),_crypto=require("crypto"),_nodemailer=_interopRequireDefault(require("nodemailer")),_errors=require("../../lib/errors"),_models=_interopRequireDefault(require("./models"));function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}function asyncGeneratorStep(a,b,c,d,e,f,g){try{var h=a[f](g),i=h.value}catch(a){return void c(a)}h.done?b(i):Promise.resolve(i).then(d,e)}function _asyncToGenerator(a){return function(){var b=this,c=arguments;return new Promise(function(d,e){function f(a){asyncGeneratorStep(h,d,e,f,g,"next",a)}function g(a){asyncGeneratorStep(h,d,e,f,g,"throw",a)}var h=a.apply(b,c);f(void 0)})}}function ownKeys(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function _objectSpread(a){for(var b,c=1;c<arguments.length;c++)b=null==arguments[c]?{}:arguments[c],c%2?ownKeys(Object(b),!0).forEach(function(c){_defineProperty(a,c,b[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach(function(c){Object.defineProperty(a,c,Object.getOwnPropertyDescriptor(b,c))});return a}function _defineProperty(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}var Adapter=(a,b)=>{function c(){if("development"===process.env.NODE_ENV){for(var a=arguments.length,b=Array(a),c=0;c<a;c++)b[c]=arguments[c];console.log("[DEBUG]",...b)}}function d(){return e.apply(this,arguments)}function e(){return e=_asyncToGenerator(function*(){function b(){return d.apply(this,arguments)}function d(){return d=_asyncToGenerator(function*(){o=(0,_typeorm.getConnection)(a.name),o.isConnected||(o=yield o.connect())}),d.apply(this,arguments)}function e(){return g.apply(this,arguments)}function g(){return g=_asyncToGenerator(function*(a){c("Create user",a);try{var b=new h(a.name,a.email,a.image);return yield(0,_typeorm.getManager)().save(b)}catch(a){return console.error("CREATE_USER_ERROR",a),Promise.reject(new _errors.CreateUserError(a))}}),g.apply(this,arguments)}function i(){return k.apply(this,arguments)}function k(){return k=_asyncToGenerator(function*(a){return c("Update user",a),!1}),k.apply(this,arguments)}function m(){return n.apply(this,arguments)}function n(){return n=_asyncToGenerator(function*(a){c("Get user",a);try{return o.getRepository(h).findOne({id:a})}catch(a){return console.error("GET_USER_BY_ID_ERROR",a),Promise.reject(new Error("GET_USER_BY_ID_ERROR",a))}}),n.apply(this,arguments)}function p(){return q.apply(this,arguments)}function q(){return q=_asyncToGenerator(function*(a,b){c("Get user by provider account ID",a,b);try{var d=yield o.getRepository(f).findOne({providerId:a,providerAccountId:b});return d?o.getRepository(h).findOne({id:d.userId}):null}catch(a){return console.error("GET_USER_BY_POVIDER_ACCOUNT_ID_ERROR",a),Promise.reject(new Error("GET_USER_BY_POVIDER_ACCOUNT_ID_ERROR",a))}}),q.apply(this,arguments)}function r(){return s.apply(this,arguments)}function s(){return s=_asyncToGenerator(function*(a){return c("Get user by email address",a),!1}),s.apply(this,arguments)}function t(){return u.apply(this,arguments)}function u(){return u=_asyncToGenerator(function*(a){return c("Get user by credentials",a),!1}),u.apply(this,arguments)}function v(){return w.apply(this,arguments)}function w(){return w=_asyncToGenerator(function*(a){return c("Delete user",a),!1}),w.apply(this,arguments)}function x(){return y.apply(this,arguments)}function y(){return y=_asyncToGenerator(function*(a,b,d,e,g,h,i){c("Link provider account",a,b,d,e,g,h,i);try{var j=new f(a,b,d,e,g,h,i);return(0,_typeorm.getManager)().save(j)}catch(a){return console.error("LINK_ACCOUNT_ERROR",a),Promise.reject(new Error("LINK_ACCOUNT_ERROR",a))}}),y.apply(this,arguments)}function z(){return A.apply(this,arguments)}function A(){return A=_asyncToGenerator(function*(a,b,d){return c("Unlink provider account",a,b,d),!1}),A.apply(this,arguments)}function B(){return C.apply(this,arguments)}function C(){return C=_asyncToGenerator(function*(a){c("Create session",a);try{var b=new j(a.id);return(0,_typeorm.getManager)().save(b)}catch(a){return console.error("CREATE_SESSION_ERROR",a),Promise.reject(new Error("CREATE_SESSION_ERROR",a))}}),C.apply(this,arguments)}function D(){return E.apply(this,arguments)}function E(){return E=_asyncToGenerator(function*(a){c("Get session",a);try{var b=yield o.getRepository(j).findOne({sessionToken:a});return b}catch(a){return console.error("GET_SESSION_ERROR",a),Promise.reject(new Error("GET_SESSION_ERROR",a))}}),E.apply(this,arguments)}function F(){return G.apply(this,arguments)}function G(){return G=_asyncToGenerator(function*(a){c("Delete session",a);try{return yield o.getRepository(j).delete({sessionToken:a})}catch(a){return console.error("DELETE_SESSION_ERROR",a),Promise.reject(new Error("DELETE_SESSION_ERROR",a))}}),G.apply(this,arguments)}function H(){return I.apply(this,arguments)}function I(){return I=_asyncToGenerator(function*(a,b,d,e,f,g){c("Create verification request",a);try{var{site:h}=g,{callbackUrl:i}=f,{server:j,from:k,subject:m,text:n,html:o,unsubscribe:p}=f,q=(0,_crypto.createHash)("sha256").update("".concat(d).concat(e)).digest("hex"),r=new l(a,q),s=yield(0,_typeorm.getManager)().save(r);return yield new Promise((e,f)=>{_nodemailer.default.createTransport(j).sendMail({to:a,from:k,subject:m({site:h})||"Sign in",text:n?n({email:a,url:b,token:d,site:h,callbackUrl:i,unsubscribe:p}):b,html:o?o({email:a,url:b,token:d,site:h,callbackUrl:i,unsubscribe:p}):"<p><a href=\"".concat(b,"\">Sign in</a></p>")},d=>d?(console.error("SEND_EMAIL_VERIFICATION_ERROR",a,d),f(new Error("SEND_EMAIL_VERIFICATION_ERROR",d))):void(c("Sent verification email",a,b),e()))}),s}catch(a){return console.error("CREATE_EMAIL_VERIFICATION_ERROR",a),Promise.reject(new Error("CREATE_EMAIL_VERIFICATION_ERROR",a))}}),I.apply(this,arguments)}function J(){return K.apply(this,arguments)}function K(){return K=_asyncToGenerator(function*(a,b,d){c("Get verification request",a,b);try{var e=(0,_crypto.createHash)("sha256").update("".concat(b).concat(d)).digest("hex"),f=yield o.getRepository(l).findOne({email:a,token:e});return c("GET_EMAIL_VERIFICATION",f),f}catch(a){return console.error("GET_EMAIL_VERIFICATION_ERROR",a),Promise.reject(new Error("GET_EMAIL_VERIFICATION_ERROR",a))}}),K.apply(this,arguments)}function L(){return M.apply(this,arguments)}function M(){return M=_asyncToGenerator(function*(a,b){c("Delete verification request",a,b);try{return yield o.getRepository(l).delete({email:a})}catch(a){return console.error("DELETE_EMAIL_VERIFICATION_ERROR",a),Promise.reject(new Error("DELETE_EMAIL_VERIFICATION_ERROR",a))}}),M.apply(this,arguments)}if(!o)try{o=yield(0,_typeorm.createConnection)(a)}catch(a){"AlreadyHasActiveConnectionError"===a.name?yield b():console.error("ADAPTER_CONNECTION_ERROR",a)}else yield b();return Promise.resolve({createUser:e,updateUser:i,getUser:m,getUserByProviderAccountId:p,getUserByEmail:r,getUserByCredentials:t,deleteUser:v,linkAccount:x,unlinkAccount:z,createSession:B,getSession:D,deleteSession:F,createEmailVerification:H,getEmailVerification:J,deleteEmailVerification:L})}),e.apply(this,arguments)}b=_objectSpread(_objectSpread({},{}),b);var f=b.Account?b.Account.model:_models.default.Account.model,g=b.Account?b.Account.schema:_models.default.Account.schema,h=b.User?b.User.model:_models.default.User.model,i=b.User?b.User.schema:_models.default.User.schema,j=b.Session?b.Session.model:_models.default.Session.model,k=b.Session?b.Session.schema:_models.default.Session.schema,l=b.EmailVerification?b.EmailVerification.model:_models.default.EmailVerification.model,m=b.EmailVerification?b.EmailVerification.schema:_models.default.EmailVerification.schema,n={name:"default",autoLoadEntities:!0,entities:[new _typeorm.EntitySchema(g),new _typeorm.EntitySchema(i),new _typeorm.EntitySchema(k),new _typeorm.EntitySchema(m)],logging:!1};a=_objectSpread(_objectSpread({},n),a),c("Development mode; debug output enabled");var o=null;return{getAdapter:d}},_default={Adapter,Models:_models.default};exports.default=_default;

@@ -1,1 +0,1 @@

"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;function ownKeys(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function _objectSpread(a){for(var b,c=1;c<arguments.length;c++)b=null==arguments[c]?{}:arguments[c],c%2?ownKeys(Object(b),!0).forEach(function(c){_defineProperty(a,c,b[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach(function(c){Object.defineProperty(a,c,Object.getOwnPropertyDescriptor(b,c))});return a}function _defineProperty(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}var _default=a=>_objectSpread({id:"email",type:"email",name:"Email",server:"localhost",port:25,secure:!0,username:"",password:"",from:"NextAuth <no-reply@example.com>",subject,html,text},a);exports.default=_default;var subject=(a)=>{var{site:b}=a;return"Sign in to ".concat(b.replace(/^https?:\/\//,""))},html=(a)=>{var{email:b,url:c,token:d,site:e,callbackUrl:f}=a,g="#444444";return"\n<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n <tr>\n <td align=\"center\" style=\"padding: 10px 0; font-size: 18px; font-family: Helvetica, Arial, sans-serif; color: #888888;\">\n ".concat(e.replace(/^https?:\/\//,""),"\n </td>\n </tr>\n <tr>\n <td align=\"center\" style=\"padding: 10px 0;\">\n <table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n <tr>\n <td align=\"center\" style=\"border-radius: 3px;\" bgcolor=\"").concat(g,"\"><a href=\"").concat(c,"\" target=\"_blank\" style=\"font-size: 16px; font-family: Helvetica, Arial, sans-serif; color: ").concat("#ffffff","; text-decoration: none; text-decoration: none;border-radius: 3px; padding: 12px 18px; border: 1px solid ").concat(g,"; display: inline-block; font-weight: bold;\">Sign in</a></td>\n </tr>\n </table>\n </td>\n </tr>\n</table>\n")},text=(a)=>{var{email:b,url:c,token:d,site:e,callbackUrl:f}=a;return"".concat(c,"\n\n")};
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;function ownKeys(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function _objectSpread(a){for(var b,c=1;c<arguments.length;c++)b=null==arguments[c]?{}:arguments[c],c%2?ownKeys(Object(b),!0).forEach(function(c){_defineProperty(a,c,b[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach(function(c){Object.defineProperty(a,c,Object.getOwnPropertyDescriptor(b,c))});return a}function _defineProperty(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}var _default=a=>_objectSpread({id:"email",type:"email",name:"Email",server:{host:"localhost",port:25,secure:!0,auth:{user:"",pass:""}},from:"NextAuth <no-reply@example.com>",subject,html,text,unsubscribe:(a)=>{var{email:b}=a;return"{{unsubscribe}}"}},a);exports.default=_default;var subject=(a)=>{var{site:b}=a;return"Sign in to ".concat(b.replace(/^https?:\/\//,""))},html=(a)=>{var{email:b,url:c,token:d,site:e,unsubscribe:f,callbackUrl:g}=a,h="#444444";return"\n<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n <tr>\n <td align=\"center\" style=\"padding: 10px 0; font-size: 18px; font-family: Helvetica, Arial, sans-serif; color: #888888;\">\n ".concat(e.replace(/^https?:\/\//,""),"\n </td>\n </tr>\n <tr>\n <td align=\"center\" style=\"padding: 10px 0;\">\n <table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n <tr>\n <td align=\"center\" style=\"border-radius: 3px;\" bgcolor=\"").concat(h,"\"><a href=\"").concat(c,"\" target=\"_blank\" style=\"font-size: 16px; font-family: Helvetica, Arial, sans-serif; color: ").concat("#ffffff","; text-decoration: none; text-decoration: none;border-radius: 3px; padding: 12px 18px; border: 1px solid ").concat(h,"; display: inline-block; font-weight: bold;\">Sign in</a></td>\n </tr>\n </table>\n </td>\n </tr>\n <tr>\n <td align=\"center\" style=\"padding: 10px 0; font-size: 12px; font-family: Helvetica, Arial, sans-serif; color: #888888;\">\n ").concat(f?"<a href=\"{{unsubscribe}}\">Unsubscribe</a>":"","\n </td>\n </tr>\n</table>\n")},text=(a)=>{var{email:b,url:c,token:d,site:e,callbackUrl:f,unsubscribe:g}=a;return"\nSign in:\n\n".concat(c,"\n\n\n\n").concat(g?"Unsubscribe:\n".concat(g):"","\n")};
{
"name": "next-auth",
"version": "2.0.0-beta.25",
"version": "2.0.0-beta.26",
"description": "An authentication library for Next.js",

@@ -32,3 +32,2 @@ "repository": "https://github.com/iaincollins/next-auth.git",

"nodemailer": "^6.4.6",
"nodemailer-smtp-transport": "^2.7.4",
"oauth": "^0.9.15",

@@ -35,0 +34,0 @@ "preact": "^10.4.1",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc