Skip to content

Commit 8d12eb0

Browse files
committed
feat: expose token status apis
Signed-off-by: DaevMithran <[email protected]>
1 parent 2900601 commit 8d12eb0

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

packages/core/src/modules/sd-jwt-vc/SdJwtVcApi.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import { AgentContext } from '../../agent'
1212
import { injectable } from '../../plugins'
1313

1414
import { SdJwtVcService } from './SdJwtVcService'
15+
import { TokenStatusListService } from './credential-status'
1516

1617
/**
1718
* @public
@@ -20,10 +21,16 @@ import { SdJwtVcService } from './SdJwtVcService'
2021
export class SdJwtVcApi {
2122
private agentContext: AgentContext
2223
private sdJwtVcService: SdJwtVcService
24+
public statusList: TokenStatusListService
2325

24-
public constructor(agentContext: AgentContext, sdJwtVcService: SdJwtVcService) {
26+
public constructor(
27+
agentContext: AgentContext,
28+
sdJwtVcService: SdJwtVcService,
29+
tokenStatusListService: TokenStatusListService
30+
) {
2531
this.agentContext = agentContext
2632
this.sdJwtVcService = sdJwtVcService
33+
this.statusList = tokenStatusListService
2734
}
2835

2936
public async sign<Payload extends SdJwtVcPayload>(options: SdJwtVcSignOptions<Payload>) {

0 commit comments

Comments
 (0)