Skip to content

Commit

Permalink
add more options to types
Browse files Browse the repository at this point in the history
  • Loading branch information
OR13 committed Dec 4, 2023
1 parent 05ec119 commit 0568bcb
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,14 @@ export type ValidatePublicClaimsOptions = {
reference_nonce ?: string
}

export type JsonSerializedSdJwt = {
protected: string
payload: string
signature: string
}

export type PublicPayloadClaimset = {

iss?:string
sub?:string
iat?:number
Expand All @@ -200,6 +207,15 @@ export type PublicPayloadClaimset = {
cnf?:Confirmation
aud?: string | string[]
nonce?: string

sd_hash ?:string
_sd ?: string[]
_sd_alg ?: "sha-256" | string
_sd_jwt ?: string
_js_sd_jwt ?: JsonSerializedSdJwt
disclosures ?: string[]
type ?: string | string[]

} & Record<string, any>

export type SdJwtProtectedPayload = PublicPayloadClaimset
Expand Down

0 comments on commit 0568bcb

Please sign in to comment.