@authon/vue 0.3.1 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.ko.md CHANGED
@@ -19,7 +19,7 @@ import { createAuthon } from '@authon/vue';
19
19
  import App from './App.vue';
20
20
 
21
21
  const app = createApp(App);
22
- app.use(createAuthon({ publishableKey: 'pk_live_...', config: { apiUrl: 'https://your-authon-server.com' } }));
22
+ app.use(createAuthon({ publishableKey: 'pk_live_...' }));
23
23
  app.mount('#app');
24
24
  ```
25
25
 
@@ -39,7 +39,6 @@ const { openSignIn, signOut } = useAuthon();
39
39
 
40
40
  | 변수 | 필수 | 설명 |
41
41
  |------|------|------|
42
- | `VITE_AUTHON_API_URL` | Yes | Authon 서버 URL |
43
42
  | `VITE_AUTHON_PUBLISHABLE_KEY` | Yes | 퍼블리셔블 키 |
44
43
 
45
44
  ## 라이선스
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  # @authon/vue
4
4
 
5
- > Drop-in Vue 3 authentication with composables and components — self-hosted Clerk alternative, Auth0 alternative
5
+ > Drop-in Vue 3 authentication with composables and components — Auth0 alternative
6
6
 
7
7
  [![npm version](https://img.shields.io/npm/v/@authon/vue?color=6d28d9)](https://www.npmjs.com/package/@authon/vue)
8
8
  [![License](https://img.shields.io/badge/license-MIT-blue)](../../LICENSE)
@@ -16,8 +16,8 @@ Before installing the SDK, create an Authon project and get your API keys:
16
16
  - Select the authentication methods you want (Email/Password, OAuth providers, etc.)
17
17
 
18
18
  2. **Get your API keys** from Project Settings → API Keys
19
- - **Publishable Key** (`pk_live_...` or `pk_test_...`) — safe to use in client-side code
20
- - **Secret Key** (`sk_live_...` or `sk_test_...`) — server-side only, never expose to clients
19
+ - **Publishable Key** (`pk_live_...`) — use in your frontend code
20
+ - **Test Key** (`pk_test_...`) — for development, enables Dev Teleport
21
21
 
22
22
  3. **Configure OAuth providers** (optional) in Project Settings → OAuth
23
23
  - Add Google, Apple, GitHub, etc. with their respective Client ID and Secret
@@ -42,7 +42,6 @@ import App from './App.vue';
42
42
  const app = createApp(App);
43
43
  app.use(createAuthon({
44
44
  publishableKey: 'pk_live_YOUR_PUBLISHABLE_KEY',
45
- config: { apiUrl: 'https://your-authon-server.com' },
46
45
  }));
47
46
  app.mount('#app');
48
47
  ```
@@ -167,8 +166,8 @@ const { signOut } = useAuthon();
167
166
 
168
167
  | Variable | Required | Description |
169
168
  |----------|----------|-------------|
170
- | `VITE_AUTHON_API_URL` | Yes | Your Authon server URL |
171
- | `VITE_AUTHON_PUBLISHABLE_KEY` | Yes | Project publishable key |
169
+ | `VITE_AUTHON_PUBLISHABLE_KEY` | Yes | Project publishable key (`pk_live_...` or `pk_test_...`) |
170
+ | `VITE_AUTHON_API_URL` | No | Optional defaults to `api.authon.dev` |
172
171
 
173
172
  ## API Reference
174
173
 
@@ -203,7 +202,6 @@ createAuthon({ publishableKey: string, config?: AuthonConfig })
203
202
 
204
203
  | Feature | Authon | Clerk | Auth.js |
205
204
  |---------|--------|-------|---------|
206
- | Self-hosted | Yes | No | Partial |
207
205
  | Pricing | Free | $25/mo+ | Free |
208
206
  | OAuth providers | 10+ | 20+ | 80+ |
209
207
  | ShadowDOM modal | Yes | No | No |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authon/vue",
3
- "version": "0.3.1",
3
+ "version": "0.3.3",
4
4
  "description": "Authon Vue 3 SDK — plugin, composables, and components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -38,8 +38,8 @@
38
38
  "sdk"
39
39
  ],
40
40
  "dependencies": {
41
- "@authon/js": "workspace:^",
42
- "@authon/shared": "workspace:^"
41
+ "@authon/js": "^0.7.0",
42
+ "@authon/shared": "^0.3.0"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "vue": "^3.3.0"