@orion-services/orion-login
v0.2.0
Published
Orion Login module
Readme
Orion Login
The Orion Login is a user interface component that provides a sign in and sign up form to authenticate users with the Orion Users Service. It is built as a Nuxt module.
Features
The Orion Login component provides the following features:
- Sign-up page
- Sign-in page
Installation
Install the module to your Nuxt application with one command:
npx nuxi module add orion-loginUsage
To use the Orion Login component in your Nuxt application, import the component and include it in your template. The component will render a sign in and sign up form.
<template>
<OrionLogin />
</template>Properties
The component accepts the following properties:
- url: The base URL of the Orion Users Service. Default is
http://localhost:8080/users. - success-login-path: The path to redirect the user after a successful login.
Default is
/.
Example
<template>
<OrionLogin
url="https://users.orion-services.dev"
success-login-path="/talk"
/>
</template># Install dependencies
npm install
# Generate type stubs
npm run dev:prepare
# Develop with the playground
npm run dev
# Build the playground
npm run dev:build
# Run ESLint
npm run lint
# Run Vitest
npm run test
npm run test:watch
# Release new version
npm run release