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

next-auth-dynamodb

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

next-auth-dynamodb - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

4

lib/index.js

@@ -113,3 +113,2 @@ "use strict";

providerType,
refreshToken,
accessToken,

@@ -120,2 +119,5 @@ };

}
if (refreshToken) {
account.refreshToken = refreshToken;
}
await AccountStore.create(account);

@@ -122,0 +124,0 @@ },

{
"name": "next-auth-dynamodb",
"version": "0.1.4",
"version": "0.1.5",
"contributors": [

@@ -5,0 +5,0 @@ "Tom Andrews <git@tomandrews.co.uk>"

@@ -108,2 +108,32 @@ import Omanyd from "omanyd";

it("should not fail to link when there is no access refresh token", async () => {
const adapter = await nextAuthDynamodb.getAdapter(opts);
const savedUser = await adapter.createUser({
email: "foo@bar.com",
emailVerified: false,
name: "Foo Bar",
image: "foo.png",
});
const providerId = `providerId-${Date.now()}`;
const providerAccountId = `providerAccountId-${Date.now()}`;
await adapter.linkAccount(
savedUser.id,
providerId,
"providerType",
providerAccountId,
undefined,
"accessToken",
Date.now()
);
const readUser = await adapter.getUserByProviderAccountId(
providerId,
providerAccountId
);
expect(readUser).toStrictEqual(savedUser);
});
it("should not blow up if a provider uses numeric account ids", async () => {

@@ -110,0 +140,0 @@ const adapter = await nextAuthDynamodb.getAdapter(opts);

@@ -168,3 +168,2 @@ import type { Adapter } from "next-auth/adapters";

providerType,
refreshToken,
accessToken,

@@ -175,2 +174,5 @@ };

}
if (refreshToken) {
account.refreshToken = refreshToken;
}
await AccountStore.create(account);

@@ -177,0 +179,0 @@ },

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