MonoCloud Authentication SDK
    Preparing search index...
    • A component that renders an anchor tag configured to initiate the sign-in flow.

      Parameters

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

        Properties for the SignIn component.

      Returns Element

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

      Sign-in component works on both the server and the client in pages router and app router.

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

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

      You can customize the authorization request by passing in props. See SignInProps.

      Note⚠️: You need to set the env MONOCLOUD_AUTH_ALLOW_QUERY_PARAM_OVERRIDES=true or allowQueryParamOverrides should be true in the client initialization for props to work

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

      export default function Home() {
      return (
      <SignIn loginHint="username" authenticatorHint="password">
      Sign In
      </SignIn>
      );
      }