@ghentcdh/authentication-vue 0.0.2-0 → 0.0.2-2

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.md CHANGED
@@ -1,13 +1,10 @@
1
- ---
2
- title: Authentication
3
- ---
4
1
 
5
2
  # Use the GhentCDH keycloak libraries for authentication
6
3
 
7
4
  ## Install the libraries
8
5
 
9
6
  ```ssh
10
- pnpm add @ghentcdh/auth/frontend @ghentcdh/auth/backend
7
+ pnpm add @ghentcdh/auth-vue @ghentcdh/auth-api
11
8
  ```
12
9
 
13
10
  ## Frontend vuejs
@@ -25,7 +22,7 @@ Add following environment variables to the `.env` file.
25
22
  ```vue
26
23
 
27
24
  <script setup lang="ts">
28
- import {useAuthenticationStore} from "@ghentcdh/authentication/frontend";
25
+ import {useAuthenticationStore} from "@ghentcdh/authentication-vue";
29
26
 
30
27
  const authenticationStore = useAuthenticationStore();
31
28
  </script>
@@ -41,7 +38,7 @@ Add following environment variables to the `.env` file.
41
38
  ```vue
42
39
 
43
40
  <script setup lang="ts">
44
- import {useHttpStore} from "@ghentcdh/authentication/frontend";
41
+ import {useHttpStore} from "@ghentcdh/authentication-vue";
45
42
 
46
43
  const httpStore = useHttpStore();
47
44
 
@@ -74,7 +71,7 @@ Add the module to your module.ts imports
74
71
 
75
72
  ```typescript
76
73
 
77
- import {AuthenticationApiModule} from "@ghentcdh/authentication/api";
74
+ import {AuthenticationApiModule} from "@ghentcdh/authentication-api";
78
75
 
79
76
  @Module({
80
77
  imports: [AuthenticationApiModule],
@@ -87,7 +84,7 @@ export class MyModule {
87
84
  Use the `@GhentCdhGuard` decorator to secure your routes
88
85
 
89
86
  ```typescript
90
- import {GhentCdhGuard} from "@ghentcdh/authentication/api";
87
+ import {GhentCdhGuard} from "@ghentcdh/authentication-api";
91
88
 
92
89
  @Controller()
93
90
  export class MyController {
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@ghentcdh/authentication-vue",
3
- "version": "0.0.2-0",
3
+ "license": "MIT",
4
+ "version": "0.0.2-2",
4
5
  "main": "./index.js",
5
6
  "types": "./index.d.ts",
6
7
  "dependencies": {
@@ -17,7 +18,6 @@
17
18
  },
18
19
  "repository": {
19
20
  "type": "git",
20
- "url": "https://github.com/GhentCDH/ghentcdh-monorepo.git",
21
- "directory": "libs/authentication/vue"
21
+ "url": "https://github.com/GhentCDH/ghentcdh-monorepo.git"
22
22
  }
23
23
  }
package/src/index.ts CHANGED
@@ -1,3 +1,3 @@
1
- export * from './keycloak.adapter';
2
- export * from './authentication.store';
3
- export * from './request.store';
1
+ export * from './lib/keycloak.adapter';
2
+ export * from './lib/authentication.store';
3
+ export * from './lib/request.store';
File without changes
File without changes