nuxt-pineal-basic
v1.2.3
Published
pineal common login/chat module for nuxt
Downloads
32
Readme
Pineal Login
My new Nuxt module for doing amazing things.
Features
- ⛰ Foo
- 🚠 Bar
- 🌲 Baz
Quick Setup
项目需设置环境变量
COGNITO_DOMAIN
COGNITO_CLIENT_ID
COGNITO_USER_POOL_ID
COGNITO_REGION
S3_BUCKET_NAME
S3_REGION
AWS_SECRET_ID
AWS_SECRET_REGION
Dependence
项目依赖tailwindcss
登录组件需传入cognito clientId 和 cognito-domain域名
注册组件需传入cognito clientId 和 cognito-domain域名和锁定词(可选)
接口地址为
/api/auth/signIn
/api/auth/callback
/api/auth/register
/api/auth/userInfo
Composables
const { userInfo, status, signIn, signOut, getUserInfo } = useAuth()
const { problem, description } = useChat()
Contribution
# 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