{"id":20999818,"url":"https://github.com/roshan-labs/auth","last_synced_at":"2026-02-07T18:04:34.588Z","repository":{"id":215542501,"uuid":"739009666","full_name":"roshan-labs/auth","owner":"roshan-labs","description":"Nuxt3 身份验证模块","archived":false,"fork":false,"pushed_at":"2024-12-11T02:57:42.000Z","size":1097,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-04T00:29:00.643Z","etag":null,"topics":["authorization","local","nuxt","nuxt-module","refresh-token","token"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/roshan-labs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-04T15:06:28.000Z","updated_at":"2024-12-11T02:57:46.000Z","dependencies_parsed_at":"2024-07-25T15:46:06.878Z","dependency_job_id":"fd9f79e8-8211-434a-8a77-52ecbe3ceb2b","html_url":"https://github.com/roshan-labs/auth","commit_stats":null,"previous_names":["roshan-labs/auth"],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roshan-labs%2Fauth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roshan-labs%2Fauth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roshan-labs%2Fauth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roshan-labs%2Fauth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roshan-labs","download_url":"https://codeload.github.com/roshan-labs/auth/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254248181,"owners_count":22038979,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["authorization","local","nuxt","nuxt-module","refresh-token","token"],"created_at":"2024-11-19T08:08:24.502Z","updated_at":"2026-02-07T18:04:29.569Z","avatar_url":"https://github.com/roshan-labs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @roshan-labs/auth\n\n[![npm version][npm-version-src]][npm-version-href]\n[![npm downloads][npm-downloads-src]][npm-downloads-href]\n[![License][license-src]][license-href]\n[![Nuxt][nuxt-src]][nuxt-href]\n\nNuxt3 身份验证模块，统一处理应用中权限相关的功能\n\n- [✨ 更新日志](/CHANGELOG.md)\n\u003c!-- - [🏀 Online playground](https://stackblitz.com/github/your-org/my-module?file=playground%2Fapp.vue) --\u003e\n- 📖 文档：计划中...\n\n## 功能\n\n- 开箱即用，几乎零配置就可以完成身份验证\n- 支持本地策略：token 和 refresh 两种场景\n- API 简单，不同策略公用相同接口\n- 完备的 Typescript 类型支持\n- 只用于 Nuxt3\n\n## 安装\n\n1. 添加 `@roshan-labs/auth` 依赖\n\n```bash\n# 可以使用 npm、yarn 和 pnpm 来安装\npnpm add @roshan-labs/auth\n```\n\n2. 添加 `@roshan-labs/auth` 到 `nuxt.config.ts` 的 `modules` 列表\n\n```js\nexport default defineNuxtConfig({\n  modules: [\n    '@roshan-labs/auth',\n  ],\n  auth: {\n    // 选项配置\n  },\n})\n```\n\n## 许可\n\n[MIT](/LICENSE)\n\n\u003c!-- Badges --\u003e\n[npm-version-src]: https://img.shields.io/npm/v/@roshan-labs/auth/latest.svg?style=flat\u0026colorA=18181B\u0026colorB=28CF8D\n[npm-version-href]: https://npmjs.com/package/@roshan-labs/auth\n\n[npm-downloads-src]: https://img.shields.io/npm/dm/@roshan-labs/auth.svg?style=flat\u0026colorA=18181B\u0026colorB=28CF8D\n[npm-downloads-href]: https://npmjs.com/package/@roshan-labs/auth\n\n[license-src]: https://img.shields.io/npm/l/@roshan-labs/auth.svg?style=flat\u0026colorA=18181B\u0026colorB=28CF8D\n[license-href]: https://npmjs.com/package/@roshan-labs/auth\n\n[nuxt-src]: https://img.shields.io/badge/Nuxt-18181B?logo=nuxt.js\n[nuxt-href]: https://nuxt.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froshan-labs%2Fauth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froshan-labs%2Fauth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froshan-labs%2Fauth/lists"}