Variable buildCredentialOffer
buildCredentialOffer: (
req: any,
configurationIds: string[],
mode: string,
options?: { sessionId?: string; signingAlg?: string; user?: any },
) => {
expires: number;
issuerState: string;
mode: string;
offer: Record<string, any>;
preAuthorizedCode: string;
txCode: string;
} = ...
Type Declaration
-
- (
req: any,
configurationIds: string[],
mode: string,
options?: { sessionId?: string; signingAlg?: string; user?: any },
): {
expires: number;
issuerState: string;
mode: string;
offer: Record<string, any>;
preAuthorizedCode: string;
txCode: string;
}
-
Parameters
- req: any
- configurationIds: string[]
- mode: string
Optionaloptions: { sessionId?: string; signingAlg?: string; user?: any }
Returns {
expires: number;
issuerState: string;
mode: string;
offer: Record<string, any>;
preAuthorizedCode: string;
txCode: string;
}
{ offer, issuerState, preAuthorizedCode, txCode, mode, expires }, expires when the offer and its code stop being honoured
(ms since the epoch)
Builds a Credential Offer for one of the Appendix H use cases:
same-device(authorization code and issuer state),cross-device(pre-authorized code and Transaction Code) ordeferred.