@travetto/auth-session 8.0.0-alpha.0 → 8.0.0-alpha.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
@@ -44,7 +44,8 @@ export class AuthSessionInterceptor implements WebInterceptor {
44
44
  @Inject()
45
45
  webAsyncContext: WebAsyncContext;
46
46
 
47
- postConstruct(): void {
47
+ @PostConstruct()
48
+ exposeSessionContext(): void {
48
49
  this.webAsyncContext.registerSource(toConcrete<Session>(), () => this.context.get(true));
49
50
  this.webAsyncContext.registerSource(toConcrete<SessionData>(), () => this.context.get(true).data);
50
51
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/auth-session",
3
- "version": "8.0.0-alpha.0",
3
+ "version": "8.0.0-alpha.2",
4
4
  "type": "module",
5
5
  "description": "Session provider for the travetto auth module.",
6
6
  "keywords": [
@@ -26,12 +26,12 @@
26
26
  "directory": "module/auth-session"
27
27
  },
28
28
  "dependencies": {
29
- "@travetto/auth": "^8.0.0-alpha.0",
30
- "@travetto/config": "^8.0.0-alpha.0",
31
- "@travetto/model": "^8.0.0-alpha.0"
29
+ "@travetto/auth": "^8.0.0-alpha.2",
30
+ "@travetto/config": "^8.0.0-alpha.2",
31
+ "@travetto/model": "^8.0.0-alpha.2"
32
32
  },
33
33
  "peerDependencies": {
34
- "@travetto/test": "^8.0.0-alpha.0"
34
+ "@travetto/test": "^8.0.0-alpha.2"
35
35
  },
36
36
  "peerDependenciesMeta": {
37
37
  "@travetto/test": {
@@ -5,15 +5,19 @@ import { Inject } from '@travetto/di';
5
5
  import type { SessionContext, SessionService } from '@travetto/auth-session';
6
6
  import { type AuthContext, AuthenticationError } from '@travetto/auth';
7
7
  import { type AsyncContext, WithAsyncContext } from '@travetto/context';
8
- import { Util } from '@travetto/runtime';
8
+ import { Util, type Class } from '@travetto/runtime';
9
9
 
10
10
  import { InjectableSuite } from '@travetto/di/support/test/suite.ts';
11
+ import { ModelSuite } from '@travetto/model/support/test/suite';
11
12
 
12
13
  @Suite()
14
+ @ModelSuite()
13
15
  @InjectableSuite()
14
- export abstract class AuthSessionServerSuite {
16
+ export abstract class AuthSessionServerSuite<T> {
15
17
 
16
18
  timeScale = 1;
19
+ serviceClass: Class<T>;
20
+ configClass: Class;
17
21
 
18
22
  @Inject()
19
23
  auth: AuthContext;