Sign in

Component: <SignUp>

<SignUp> renders a link that initiates the MonoCloud sign-up flow.

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

Internally, it behaves like <SignIn> but sets prompt=create to start the registration flow.

Props

PropertyTypeDescription
acrValues?string[]Authentication Context Class Reference (ACR) values requesting specific authentication assurance levels or methods.
display?DisplayOptionsPreferred display mode for the authentication UI.
maxAge?numberMaximum acceptable time (in seconds) since the user last authenticated. If exceeded, the user may be required to sign in again.
resource?stringSpace-separated list of resource indicators that scope the issued access token.
returnUrl?stringURL to redirect to after successful sign-up.
scopes?stringSpace-separated list of scopes requested during authentication.
uiLocales?stringPreferred UI language.

Examples

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.

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

export default function Home() {
  return (
    <SignUp returnUrl="/dashboard" uiLocales="en">
      Sign Up
    </SignUp>
  );
}
© 2024 MonoCloud. All rights reserved.