+
).hasSso === true;
+ }
+
if (redirectTo) {
const session = await setRedirectTo(request, redirectTo);
@@ -78,6 +99,7 @@ export async function loader({ request }: LoaderFunctionArgs) {
redirectTo,
showGithubAuth: isGithubAuthSupported,
showGoogleAuth: isGoogleAuthSupported,
+ showSsoAuth,
lastAuthMethod,
authError: null,
isVercelMarketplace: redirectTo.startsWith("/vercel/callback"),
@@ -105,6 +127,7 @@ export async function loader({ request }: LoaderFunctionArgs) {
redirectTo: null,
showGithubAuth: isGithubAuthSupported,
showGoogleAuth: isGoogleAuthSupported,
+ showSsoAuth,
lastAuthMethod,
authError,
isVercelMarketplace: false,
@@ -181,6 +204,26 @@ export default function LoginPage() {
)}
+ {data.showSsoAuth && !data.isVercelMarketplace && (
+
+
+
+ {data.lastAuthMethod === "sso" && }
+
+
+ Sign in with SSO
+
+
+
+ )}
{data.authError &&
{data.authError}}