{% extends "base.html" %} {% block title %}Profile · Cross-Auth FastAPI Hybrid Example{% endblock %} {% block content %}
This page is protected by the session cookie written either by
CrossAuth.login(...) or by the GitHub session-social callback flow.
The same backend also exposes bearer-token APIs for the separate SPA demo.
User ID {{ user.id }}
Email verified {% if user.email_verified %} yes {% else %} no {% endif %}
Social accounts
{% if user.social_accounts %}{{ account.provider }}
· provider user {{ account.provider_user_id }}
{% if account.provider_email %}
· {{ account.provider_email }}
{% endif %}
{% if account.provider_email_verified %}
verified
{% else %}
unverified or unknown
{% endif %}
/auth/token flow for a separate SPA client{{ event.time }}
{{ event.name }}
{% for key, value in event.items() %}
{% if key not in ["time", "name"] and value %}
· {{ key }}={{ value }}
{% endif %}
{% endfor %}