rsnext/examples/with-supertokens
Titus Moore b83c5eb85c
Refactored the with-supertokens example to use typescript (#39987)
<!--
Thanks for opening a PR! Your contribution is much appreciated.
In order to make sure your PR is handled as smoothly as possible we
request that you follow the checklist sections below.
Choose the right checklist for the change that you're making:
-->

## Documentation / Examples

- [x] Make sure the linting passes by running `pnpm lint`
- [x] The examples guidelines are followed from [our contributing
doc](https://github.com/vercel/next.js/blob/canary/contributing.md#adding-examples)

Convert example to use typescript.

Co-authored-by: Titus Moore <tmoore@edgewebware.com>
Co-authored-by: JJ Kasper <jj@jjsweb.site>
2022-08-29 12:40:26 -05:00
..
config Refactored the with-supertokens example to use typescript (#39987) 2022-08-29 12:40:26 -05:00
pages Refactored the with-supertokens example to use typescript (#39987) 2022-08-29 12:40:26 -05:00
public Add Supertokens example (#21384) 2021-02-15 15:41:45 -06:00
styles Add Supertokens example (#21384) 2021-02-15 15:41:45 -06:00
.env Updates with-supertokens example to add sign in with apple (#31200) 2021-11-12 19:54:28 -06:00
.gitignore Update default gitignore templates (#39051) 2022-07-26 20:08:40 -05:00
interfaces.d.ts Refactored the with-supertokens example to use typescript (#39987) 2022-08-29 12:40:26 -05:00
next.config.js Update to with-supertokens example (#35991) 2022-04-11 12:22:47 +02:00
package.json Refactored the with-supertokens example to use typescript (#39987) 2022-08-29 12:40:26 -05:00
README.md docs(examples): improve DX while copying command to create new project (#38410) 2022-07-26 21:57:48 -05:00
tsconfig.json Refactored the with-supertokens example to use typescript (#39987) 2022-08-29 12:40:26 -05:00

SuperTokens Example

This is a simple set up for applications protected by SuperTokens.

How to use

npx create-next-app --example with-supertokens with-supertokens-app
yarn create next-app --example with-supertokens with-supertokens-app
pnpm create next-app --example with-supertokens with-supertokens-app
  • Run yarn install

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

Notes

  • Take a look at SuperTokens documentation.
  • We have provided development OAuth keys for the various in build third party providers in the .env file. Feel free to use them for development purposes, but please create your own keys for production use.