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

      • It functions similarly to the SignIn component but explicitly sets the prompt parameter to create.

      Parameters

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

        Properties for the SignUp component.

      Returns Element

      An anchor element that links to the sign-in endpoint with the prompt set to 'create'.

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

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

      export default function Home() {
      return <SignUp>Sign Up</SignUp>;
      }

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

      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 { SignUp } from "@monocloud/auth-nextjs/components";

      export default function Home() {
      return <SignUp returnUrl="/dashboard">Sign Up</SignUp>;
      }