d2c7930992
Co-authored-by: NkxxkN <kevin@supertokens.io> Co-authored-by: NkxxkN <kevin.antoine@protonmail.com> Co-authored-by: Lee Robinson <me@leerob.io> Co-authored-by: Rishabh <rishabh@supertokens.io> Co-authored-by: Bhumil Sarvaiya <sarvaiyabhumil@gmail.com> Co-authored-by: jscyo <joelsteve97@hotmail.com> Co-authored-by: Mihaly Lengyel <mihaly.lengyel@tresorit.com> Co-authored-by: Balázs Orbán <info@balazsorban.com> Co-authored-by: Mihaly Lengyel <mihaly@lengyel.tech> Co-authored-by: Alisher <alisher@supertokens.com> |
||
---|---|---|
.. | ||
config | ||
pages | ||
public | ||
styles | ||
.env | ||
.gitignore | ||
interfaces.d.ts | ||
next.config.js | ||
package.json | ||
README.md | ||
tsconfig.json |
SuperTokens Example
This is a simple set up for applications protected by SuperTokens.
How to use
- Execute
create-next-app
with npm, Yarn, or pnpm to bootstrap the example:
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 onhttp://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.