MonoCloud Authentication SDK
    Preparing search index...
    • <SignIn> renders a link that initiates the MonoCloud sign-in flow.

      It can be used in both App Router and Pages Router, and may be rendered from either Server or Client Components.

      Parameters

      • props: SignInProps & Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "resource">

        Properties for the SignIn component.

      Returns ReactNode

      An anchor element that links to the sign-in endpoint with the specified parameters.

      import { SignIn } from "@monocloud/auth-nextjs/components";

      export default function Home() {
      return <SignIn>Sign In</SignIn>;
      }

      You can customize the authorization request by passing props:

      import { SignIn } from "@monocloud/auth-nextjs/components";

      export default function Home() {
      return (
      <SignIn loginHint="user@example.com" authenticatorHint="password" returnUrl="/dashboard">
      Sign In
      </SignIn>
      );
      }