Skip to content

Commit

Permalink
Bumps version of supertokens dependencies and updates its README (#24571
Browse files Browse the repository at this point in the history
)

Co-authored-by: Lee Robinson <[email protected]>
Co-authored-by: NkxxkN <[email protected]>
Co-authored-by: NkxxkN <[email protected]>
  • Loading branch information
4 people authored May 5, 2021
1 parent fc9b48b commit 243472f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
8 changes: 7 additions & 1 deletion examples/with-supertokens/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,22 @@ Deploy the example using [Vercel](https://vercel.com):

## How to use

Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:
- Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:

```bash
npx create-next-app --example with-supertokens with-supertokens-app
# or
yarn create next-app --example with-supertokens with-supertokens-app
```

- Run `yarn install`

- Run `npm run dev` to start the application on `http://localhost:3000`.

## Configuration

> Until you do this, social login will not work. But you can still try out email password sign up / in.
- Create a `.env.local` file and copy the content of `.env.local.example` into it:

```bash
Expand Down
1 change: 0 additions & 1 deletion examples/with-supertokens/config/supertokensConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ export let backendConfig = () => {

export let frontendConfig = () => {
return {
useReactRouterDom: false,
appInfo,
recipeList: [
ThirdPartyEmailPasswordReact.init({
Expand Down
4 changes: 2 additions & 2 deletions examples/with-supertokens/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"next": "latest",
"react": "17.0.1",
"react-dom": "17.0.1",
"supertokens-auth-react": "^0.9.0",
"supertokens-node": "^4.3.0"
"supertokens-auth-react": "^0.12.0",
"supertokens-node": "^5.0.0"
},
"license": "MIT"
}

0 comments on commit 243472f

Please sign in to comment.