<SignIn />

Renders a sign-in component with customizable options.

Component Options

If true, renders the sign-in page in full-page mode with additional styling.

If true, automatically redirects when user is already signed in without showing the 'You are signed in' message.

Determines which tab is initially active when both email and password authentication are enabled.

Additional content to be displayed below the sign-in form, such as terms of service links.

Live Preview

Component Demo

Code Example

For more information, please refer to the custom pages guide.

Props

PropTypeDefaultDescription
fullPageoptional
booleanfalseIf true, renders the component in full-page mode.
automaticRedirectoptional
booleanfalseIf true, redirect to afterSignIn/afterSignUp URL when user is already signed in without showing the 'You are signed in' message.
extraInfooptional
React.ReactNodeundefinedAdditional content to be displayed on the sign-in page.
firstTaboptional
'magic-link' | 'password'undefinedDetermines which tab is initially active.

Example

import { SignIn } from '@stackframe/stack';

export default function Page() {
  return (
    <div>
      <h1>Sign In</h1>
      <SignIn
        fullPage={true}
        automaticRedirect={true}
        firstTab='password'
        extraInfo={<>When signing in, you agree to our <a href="/terms">Terms</a></>}
      />
    </div>
  );
}

Stack Auth AI

Documentation assistant

Experimental: AI responses may not always be accurate—please verify important details.

For the most accurate information, please join our Discord or email us.

How can I help?

Ask me about Stack Auth while you browse the docs.