-
Notifications
You must be signed in to change notification settings - Fork 0
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
TECH-292 - Show the credential when presented #87
Conversation
TYRONEMICHAEL
commented
Sep 3, 2024
•
edited
Loading
edited
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
<img src="/logo2.svg" alt="DFINITY logo" className="mx-auto mb-8 w-32" /> | ||
|
||
{principal ? ( | ||
<div className="flex flex-col items-center justify-center"> | ||
<h1 className="text-2xl font-bold text-center mb-4">Welcome to the ICP Relying Canister</h1> | ||
<p className="text-center mb-6">Logged in as <span className="font-mono bg-gray-100 p-1 rounded">{principal?.toText()}</span></p> | ||
{credentialCheckResponse && ( | ||
<div className="mb-6 "> |
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.
should maybe be a gap on the parent?
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.
Not sure what you mean here.
{credentialCheckResponse && ( | ||
<div className="mb-6 "> | ||
<p className="text-sm text-gray-600">Response:</p> | ||
<p className="font-mono text-sm bg-gray-100 p-8 rounded">{JSON.stringify(credentialCheckResponse.credential, undefined, 2)}</p> |
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.
instead of this p
, use <pre><code>
to create it
Approval via Slack from Pedro. |