feat(dashboard-v2): show instance, offer SSO when advertised

This commit is contained in:
sam committed 2026-10-27 00:19:20 +11:00
1 parent 482c361c1d
commit af0e60bd97
4 files changed
+37 -10

No files matched your search

+16 -1
View File
@@ -25,7 +25,7 @@ const contentStyle: CSSProperties = {
};
export default function LoginPage() {
const { signIn } = useSession();
const { signIn, instance, oidc } = useSession();
const [email, setEmail] = useState("");
const [password, setPassword] = useState("");
const [isLoading, setIsLoading] = useState(false);
@@ -98,6 +98,21 @@ export default function LoginPage() {
isLoading={isLoading}
onClick={() => void handleSignIn()}
/>
{oidc && (
<Button
label="Continue with SSO"
variant="secondary"
size="lg"
onClick={() => {
window.location.href = "/oauth2/login";
}}
/>
)}
{instance && (
<Text type="supporting" color="secondary" justify="center">
{instance}
</Text>
)}
</VStack>
</Card>
</VStack>