From a7a6aa54ef90c586dcc9274b7366c31873a552ad Mon Sep 17 00:00:00 2001 From: Adityo Pratomo Date: Sun, 6 Sep 2020 06:24:09 +0700 Subject: [PATCH] update nextjs-auth0 versionfor auth0 example (#16871) While running the current [auth0 example](https://github.com/vercel/next.js/tree/canary/examples/auth0), I bumped into this error while trying to access an API route from a page. ``` { "error": "_lib_auth0__WEBPACK_IMPORTED_MODULE_1__.default.tokenCache is not a function" } ``` After checking the [nextjs-auth0](https://github.com/auth0/nextjs-auth0) repo, I realize that they're using version 0.8.0 of the SDK. Changing the package.json to the appropriate version fixes this error. Signed-off-by: Adityo Pratomo --- examples/auth0/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/auth0/package.json b/examples/auth0/package.json index ef9ceed5c9..16f771f656 100644 --- a/examples/auth0/package.json +++ b/examples/auth0/package.json @@ -8,7 +8,7 @@ "author": "", "license": "MIT", "dependencies": { - "@auth0/nextjs-auth0": "^0.6.0", + "@auth0/nextjs-auth0": "^0.8.0", "next": "latest", "react": "^16.12.0", "react-dom": "^16.12.0" -- GitLab