- {children} -
- ); + return{children}
} export function TypographyH2({ children }: PropsWithChildren) { - return ( -- {children} -
- ); + return{children}
} export function TypographyH3({ children }: PropsWithChildren) { - return ( -- {children} -
- ); + return{children}
} export function TypographyH4({ children }: PropsWithChildren) { - return ( -- {children} -
- ); + return{children}
} export function TypographyP({ children }: PropsWithChildren) { - return{children}
; + return{children}
} diff --git a/app/lib/api.ts b/app/lib/api.ts index b434595..6b583cf 100644 --- a/app/lib/api.ts +++ b/app/lib/api.ts @@ -1,116 +1,211 @@ -import { NEXT_PUBLIC_API_URL } from "./constants"; +import type { ResponseMode } from '../components/VerifyBlock' +import { NEXT_PUBLIC_API_URL } from './constants' +export type CreateOfferReturn = { credentialOffer: string; issuanceSession: { userPin?: string } } export async function createOffer({ credentialSupportedId, - issuerDidMethod, + authorization, + requireDpop, + requireWalletAttestation, + requireKeyAttestation, }: { - credentialSupportedId: string; - issuerDidMethod: string; -}) { + credentialSupportedId: string + authorization: string + requireDpop: boolean + requireWalletAttestation: boolean + requireKeyAttestation: boolean +}): Promise