Skip to content

Feat/vue adapter#4

Merged
aqib-io merged 2 commits intomainfrom
feat/vue-adapter
Mar 5, 2026
Merged

Feat/vue adapter#4
aqib-io merged 2 commits intomainfrom
feat/vue-adapter

Conversation

@aqib-io
Copy link
Owner

@aqib-io aqib-io commented Mar 5, 2026

What

Add a Vue 3 adapter (tokensmith/vue) with createTokenSmithPlugin, useAuth, and useTokenManager composables. Includes a Vue example app mirroring the existing React demo with login, dashboard, token lifecycle visualization, and cross-tab sync.

Why

Extends tokensmith to support Vue 3 applications alongside the existing React adapter, making the library framework-agnostic.

Type of Change

  • New feature (non-breaking change which adds functionality)

Checklist

  • All CI gates pass locally (npm run typecheck && npm run lint && npm test && npm run build)
  • Tests added for new behavior
  • README updated (if public API changed)
  • Changeset added (npx changeset) — not needed for docs/CI-only changes

aqib-io added 2 commits March 5, 2026 22:20
- createTokenSmithPlugin (Vue plugin with provide/inject)
- useAuth composable (reactive auth state, logout, getAccessToken)
- useTokenManager composable (direct manager access)
- Subpath export: tokensmith/vue
- 12 tests covering plugin, useAuth, useTokenManager
- README docs for Vue quick start and API
- Login page, dashboard with token lifecycle visualization
- Vue Router guards with reactive auth state listener
- Cross-tab sync demo via BroadcastChannel
- Updated NestJS CORS to allow both :5173 and :5174
@aqib-io aqib-io merged commit 5686782 into main Mar 5, 2026
This was referenced Mar 5, 2026
@aqib-io aqib-io deleted the feat/vue-adapter branch March 6, 2026 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant