Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions fern/pages/guides/agentid-browser-enrollment.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ only after obtaining the final page URL from the browser transport:

```json
{
"type": "agentid_enrollment_required",
"type": "agentid_session_required",
"issuer": "https://auth.agentid.com",
"browser_origin": "https://auth.agentid.com",
"agentmail_enrollment_endpoint": "https://api.agentmail.to/v0/inboxes/{inbox_id}/browser-credentials/enrollments",
Expand Down Expand Up @@ -151,7 +151,7 @@ def create_browser_enrollment(
if canonical_origin(source_url) != AGENTID_ORIGIN:
raise ValueError("Untrusted browser enrollment origin")
if (
action.get("type") != "agentid_enrollment_required"
action.get("type") != "agentid_session_required"
or action.get("issuer") != AGENTID_ORIGIN
or action.get("browser_origin") != AGENTID_ORIGIN
or action.get("agentmail_enrollment_endpoint")
Expand Down Expand Up @@ -213,7 +213,7 @@ async function createBrowserEnrollment({
throw new Error("Untrusted browser enrollment origin");
}
if (
action.type !== "agentid_enrollment_required" ||
action.type !== "agentid_session_required" ||
action.issuer !== AGENTID_ORIGIN ||
action.browser_origin !== AGENTID_ORIGIN ||
action.agentmail_enrollment_endpoint !== ENROLLMENT_ENDPOINT_TEMPLATE ||
Expand Down
Loading