Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export default function AuthIndicator() {
const [session, loading] = useSession()
if (loading) return `Loading...`
return (
<div>
{session && (
<>
<span>
Signed in as {session.user.email}
</span>
<span>
<button size="small" title="{`Sign">
</button></span></div>