-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: federation in the wallet #238
Conversation
Signed-off-by: Jan <[email protected]>
import { useLocalSearchParams } from 'expo-router' | ||
|
||
export default function Screen() { | ||
const { entityId, trustedEntityIds, name, logo } = useLocalSearchParams() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can provide the types here
const { entityId, trustedEntityIds, name, logo } = useLocalSearchParams() | |
const { entityId, trustedEntityIds, name, logo } = useLocalSearchParams<{ entityId: string, etc... }>() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think i'm missing some parts
@@ -54,7 +58,9 @@ export const VerifyPartySlide = ({ | |||
} | |||
|
|||
const onPressVerifiedIssuer = withHaptics(() => { | |||
router.push(`/issuer?entityId=${entityId}`) | |||
router.push( | |||
`/issuer?name=${name}&logo=${logo?.url}&entityId=${entityId}&trustedEntityIds=${trustedEntityIds?.join(',') ?? ''}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The route changd right?
`/issuer?name=${name}&logo=${logo?.url}&entityId=${entityId}&trustedEntityIds=${trustedEntityIds?.join(',') ?? ''}` | |
`/federation?name=${name}&logo=${logo?.url}&entityId=${entityId}&trustedEntityIds=${trustedEntityIds?.join(',') ?? ''}` |
const entityPromises = TRUSTED_ENTITIES.map((entityId) => | ||
openId4VcSiopHolderService.fetchOpenIdFederationEntityConfiguration(agent.context, { | ||
entityId, | ||
}) | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do'nt we just fetch an entity when we get a request? Why do we need to pre-fetch this?
@@ -496,6 +498,22 @@ export const getCredentialsForProofRequest = async ({ | |||
resolved.authorizationRequest.authorizationRequestPayload.client_metadata | |||
} | |||
|
|||
let verifiedEntityIds: Record<string, boolean> | undefined = undefined | |||
if (entityId) { | |||
const resolvedChains = await agent.modules.openId4VcHolder.resolveOpenIdFederationChains({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here we should return the metadata for the federation entity
apps/easypid/src/features/wallet/FunkeFederationDetailScreen.tsx
Outdated
Show resolved
Hide resolved
@@ -122,6 +122,7 @@ export function FunkeMdocOfflineSharingScreen({ | |||
hostName: undefined, | |||
logo: undefined, | |||
name: 'Unknown party', | |||
verifiedEntityIds: undefined, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
error?
No description provided.