Overview:
The Kinde Starter Kit is a Nuxt 3 project that allows users to set up an account on Kinde and authenticate their app. It provides a seamless integration between the Nuxt application and the Kinde backend.
Features:
- Account Setup: Users can register an account on Kinde to get started with the Nuxt 3 project.
- Environment Setup: Clone the repo and install the dependencies using npm i.
- URL Configuration: Set up the callback and logout URLs in Kinde to redirect users back to the Nuxt application.
- Authentication: Users will be redirected to Kinde to authenticate and upon successful login or registration, they will be redirected back to the Nuxt app.
- Redirect Setting: Specify the URL for user authentication and logout redirect in Kinde settings.
- User Management: View and manage registered users in the Kinde backend.
Installation:
To install and set up the Kinde Starter Kit for your Nuxt 3 project, follow these steps:
- Register an account on Kinde.
- Clone the repo and install dependencies using the following command:
npm i
- Create a copy of
.env.exampleand rename it to.env. - Replace the necessary values in the
.envfile with the corresponding values from the Kinde Settings -> Applications -> Backend app page. - Set the callback URL and logout redirect URL in Kinde settings:
- Set Allowed callback URLs to
http://localhost:3000/api/auth/callback. - Set Allowed logout redirect URLs to
http://localhost:3000. (Note: These URLs may vary based on your local environment setup)
- Start your project by running the following command in a terminal:
npm run dev
- Access the application by navigating to
http://localhost:3000. - Click on “Sign up” and register your first user for your business.
- To view and manage users, navigate to the “Users” page within Kinde.
For more details and advanced deployment options, refer to the Nuxt 3 documentation.
Summary:
The Kinde Starter Kit is a helpful tool for integrating Kinde authentication into your Nuxt 3 application. With simple installation steps and easy configuration of redirect URLs, users can seamlessly register, log in, and manage their accounts within your Nuxt app.