-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make corbado session management ready
- Loading branch information
1 parent
d4bcc5e
commit 2fddc94
Showing
6 changed files
with
95 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
NEXT_PUBLIC_PROJECT_ID= | ||
API_SECRET= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
{ | ||
"extends": "next/core-web-vitals", | ||
// "rules": { | ||
// "react/jsx-no-undef": [2, { "allowGlobals": true }] | ||
// } | ||
"extends": "next/core-web-vitals" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,43 @@ | ||
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). | ||
# Complete passkeys integration example Next.js with Corbado | ||
|
||
## Getting Started | ||
This is a sample implementation of the Corbado webcomponent being integrated into a web application built with Next.js. | ||
|
||
First, run the development server: | ||
## File structure | ||
|
||
```bash | ||
npm run dev | ||
# or | ||
yarn dev | ||
# or | ||
pnpm dev | ||
``` | ||
- `src/app` contains `page.tsx`, the file where the web component is embedded | ||
- `delcaration.d.ts` contains some type declarations | ||
|
||
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. | ||
## Setup | ||
|
||
You can start editing the page by modifying `app/profile.tsx`. The page auto-updates as you edit the file. | ||
### Prerequisites | ||
|
||
This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font. | ||
Please follow the steps in [Getting started](https://docs.corbado.com/overview/getting-started) to create and configure | ||
a project in the [Corbado developer panel](https://app.corbado.com). | ||
|
||
## Learn More | ||
You need to have [Node](https://nodejs.org/en/download) and `npm` installed to run it. | ||
|
||
To learn more about Next.js, take a look at the following resources: | ||
### Configure environment variables | ||
|
||
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. | ||
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. | ||
Use the values you obtained in [Prerequisites](#prerequisites) to configure the following variables inside an `.env` | ||
file you create in the root folder of this project: | ||
|
||
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome! | ||
```sh | ||
NEXT_PUBLIC_PROJECT_ID=<YOUR PROJECT ID> | ||
API_SECRET=<YOUR API SECRET> | ||
``` | ||
|
||
## Deploy on Vercel | ||
## Usage | ||
|
||
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. | ||
Run | ||
|
||
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details. | ||
```bash | ||
npm i | ||
``` | ||
|
||
to install all dependencies. | ||
|
||
Finally, you can run the project locally with | ||
|
||
```bash | ||
npm run dev | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters