Sign in

Component: <SignUp>

<SignUp> renders a button that starts the sign-up (registration) flow when clicked.

Props

PropertyTypeDescription
acrValues?string[]Authentication Context Class Reference (ACR) values requesting specific authentication assurance levels or methods.
appState?ApplicationStateCustom application state preserved across the authentication round-trip. The value is provided to the OnSessionCreating hook when the session is constructed.
childrenReactNodeContent rendered inside the button.
display?DisplayOptionsPreferred display mode for the authentication UI.
maxAge?numberMaximum allowed time (in seconds) since the user's last authentication. Used to force re-authentication if the time since the last sign-in exceeds this value.
mode?InteractionModeDetermines the interaction mode for the sign-in flow.
resource?stringSpace-separated resources the access token should be scoped to for this specific sign-in. Merged with defaultAuthParams.resource and any indicator resources configured on the client.
returnUrl?stringRelative URL to navigate to after sign-in completes.
scopes?stringSpace-separated scopes requested from the authorization server for this specific sign-in. Merged with defaultAuthParams.scopes and any indicator scopes configured on the client.
uiLocales?stringPreferred locale(s) for the sign-in UI. Example "en-US"

Examples

src/SignUpButton.tsx
"use client";

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

export default function Home() {
  return <SignUp>Create account</SignUp>;
}
© 2024 MonoCloud. All rights reserved.