From 037f79d51fcd4a61761b06c840bc190a1eaa8cf0 Mon Sep 17 00:00:00 2001 From: Rishabh Poddar Date: Tue, 22 Feb 2022 22:07:47 +0530 Subject: [PATCH] Updates with-supertokens example (#34679) * add-supertokens-to-authentication.md * bump supertokens deps * update SuperTokens Auth doc * Update docs/authentication.md Co-authored-by: Lee Robinson * Update docs/authentication.md Co-authored-by: Lee Robinson * updates supertokens dependency and optimises for serverless execution * runs prettier-fix * adds supertokens to 'Bring Your Own Database' section as well * does not show home page if not logged in * extracts config into its own file and calls it in all serverless functions * removes need for backend init in app.jsx * simplifies use of dynamic * refreshes page after getServerSideProps * removes unnecessary check in API * update to docs pertaining SuperTokens * adds placeholder secrets so that the UI loads on first run * changes to readme * updates version of supertokens frontend and backend SDK, and a few other fixes * Update docs/authentication.md Co-authored-by: Lee Robinson * updates to readme for supertokens example * updates version of dependency * updates dependency version * updates to dependencies * removes unnecessary config on frontend * changes how redirection is done post signout * update to dependency * updates examples * updates code to use for new package * updates dependencies * updates auth-react package * with-supertokens example updated to use supertokens-node v7 * updates dependency * updates supertokens-node version * Update examples/with-supertokens/package.json Co-authored-by: Lee Robinson * updates based on check-examples.sh script * linter fix * updates supertokens-auth-react dependency version * adds development OAuth key to example * removes section from README * removes unnecessary file * updates dependency versions * with-supertokens: reduced bundle size by removing node lib from bundle Linting fix * Removed accidentally added config file * adds sign in with apple * extracted oauth keys to .env file * fixes node init issue race condition * removes unnecessary file * updates supertokens-auth-react dependency * updates superttokens-node dependency * adds a cap to react dependency * updates eslint-config-next version * removes unnecessary dev dependency Co-authored-by: NkxxkN Co-authored-by: NkxxkN Co-authored-by: Lee Robinson Co-authored-by: Rishabh Co-authored-by: Bhumil Sarvaiya Co-authored-by: jscyo Co-authored-by: Mihaly Lengyel --- examples/with-supertokens/package.json | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/examples/with-supertokens/package.json b/examples/with-supertokens/package.json index 62164f491c28..5f4e2067c308 100644 --- a/examples/with-supertokens/package.json +++ b/examples/with-supertokens/package.json @@ -10,9 +10,6 @@ "react": "^17.0.1", "react-dom": "^17.0.1", "supertokens-auth-react": "^0.18.0", - "supertokens-node": "^8.1.0" - }, - "devDependencies": { - "eslint-config-next": "11.0.1" + "supertokens-node": "^9.0.0" } }