Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

609 B
Raw Blame
import { useValues } from 'kea'

import { AuthBanner } from 'scenes/authentication/shared/authScene/AuthBanner'

import { loginLogic } from '../loginLogic'

export function SessionRiskBanner({ className }: { className?: string }): JSX.Element | null {
    const { wasSignedOutForSessionRisk } = useValues(loginLogic)

    if (!wasSignedOutForSessionRisk) {
        return null
    }

    return (
        <AuthBanner variant="warning" className={className}>
            For your security, we signed you out because this session showed unusual activity. Sign back in to continue.
        </AuthBanner>
    )
}