From 74b334f7ad31b15bbd629a7616e0f16d1a16d17c Mon Sep 17 00:00:00 2001 From: Iain Collins Date: Mon, 25 May 2020 12:11:35 +0100 Subject: [PATCH] Fix default exports in entrypoints Resolves #157 --- adapters.js | 2 +- client.js | 2 +- package.json | 2 +- providers.js | 2 +- src/client/index.js | 1 - 5 files changed, 4 insertions(+), 5 deletions(-) diff --git a/adapters.js b/adapters.js index d8457a86fd..72cecb489d 100644 --- a/adapters.js +++ b/adapters.js @@ -1 +1 @@ -module.exports = require('./dist/adapters') +module.exports = require('./dist/adapters').default diff --git a/client.js b/client.js index 1c566fe498..f110bffab6 100644 --- a/client.js +++ b/client.js @@ -1 +1 @@ -module.exports = require('./dist/client') +module.exports = require('./dist/client').default \ No newline at end of file diff --git a/package.json b/package.json index 1564baccae..3954c7bf59 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "next-auth", - "version": "2.0.0-beta.43", + "version": "2.0.0-beta.44", "description": "An authentication library for Next.js", "repository": "https://github.com/iaincollins/next-auth.git", "author": "Iain Collins ", diff --git a/providers.js b/providers.js index 6423eab7c4..a136cdb377 100644 --- a/providers.js +++ b/providers.js @@ -1 +1 @@ -module.exports = require('./dist/providers') +module.exports = require('./dist/providers').default diff --git a/src/client/index.js b/src/client/index.js index 0b57c0178b..f70ad3679b 100644 --- a/src/client/index.js +++ b/src/client/index.js @@ -110,6 +110,5 @@ const _getUrlPrefixFromCookies = (cookies, baseUrlCookieName) => { export default { session, useSession, - baseUrl: _baseUrl, Provider }