32 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Passkey-First Authentication with Nuxt.js and Corbado
2 |
3 | This is a sample implementation of the Corbado UI component being integrated into a web application built with Nuxt.js.
4 |
5 | Please see the [full blog post](https://www.corbado.com/blog/passkeys-nuxtjs) to understand the detailed steps needed to integrate passkeys into Nuxt.js apps.
6 |
7 | ## File structure
8 |
9 | - `layouts/default.vue`: Encapsulating layout handling Corbado project initialization
10 | - `pages/index.vue`: component for the sign up / login screen
11 | - `pages/profile.vue`: component for the user profile information that is shown after successful authentication
12 |
13 | ## Setup
14 |
15 | ### Prerequisites
16 |
17 | Please follow the steps in [Getting started](https://docs.corbado.com/overview/getting-started) to create and configure
18 | a project in the [Corbado developer panel](https://app.corbado.com/signin#register).
19 |
20 | You need to have [Node](https://nodejs.org/en/download) and `npm` installed to run it.
21 |
22 | ## Usage
23 |
24 | Run
25 |
26 | ```bash
27 | npm i
28 | ```
29 |
30 | to install all dependencies.
31 |
32 | Finally, you can run the project locally with
33 |
34 | ```bash
35 | npm run dev
36 | ```
--------------------------------------------------------------------------------