Skip to content

Commit

Permalink
chore: update example function names
Browse files Browse the repository at this point in the history
  • Loading branch information
Brummos committed Jan 24, 2025
1 parent cd9bda9 commit f01de0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/oid4vci-issuer-rest-client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ const parseKeycloakAccessToken = async (accessToken: string): Promise<{ realmId:

const createCredentialOfferUri = async (baseUrl: string, accessToken: string, context: IAgentContext): Promise<IOID4VCIClientCreateOfferUriResponse> => {
// Parse the access token to get the realm id and user id
const parsedToken = await parseToken(accessToken)
const parsedToken = await parseKeycloakAccessToken(accessToken)
// Retrieve the custom attributes of a user to be used as credential input
const credentialDataSupplierInput = await getUserCustomAttributes(baseUrl, parsedToken.realmId, parsedToken.userId)
const credentialDataSupplierInput = await getUserCustomAttributesFromVDX(baseUrl, parsedToken.realmId, parsedToken.userId)

// Create credential offer uri with credential input
return context.agent.oid4vciClientCreateOfferUri({ credentialDataSupplierInput: {
Expand Down

0 comments on commit f01de0d

Please sign in to comment.