import { Alert, AlertTitle, Stack, Table, TableBody, TableCell, TableContainer, TableRow, } from "@mui/material"; import React, { FC } from "react"; import { Profile, Session } from "../types"; import ClaimRow from "./ClaimRow"; import IDField from "./IDField"; import Section from "./Section"; export type SessionDetailsProps = { session: Session; profile: Profile; }; export const SessionDetails: FC = ({ session, profile, }) => { return ( <> {session?.id ? (
Session ID User ID Expires At {session?.expiresAt || ""} {Object.entries(session?.claims || {}).map( ([key, values]) => ( ) )} {Object.entries(profile?.claims || {}).map(([key, value]) => ( ))}
) : ( User Details Not Available Have you signed in yet?
{location.origin}.
)} ); }; export default SessionDetails;