Sign-In Page Documentation
Overview
The Sign-In Page serves as the entry point for users to access the Vantage analytics and data platform. It is designed to authenticate users through established providers, facilitating secure access to the platform. The Sign-In Page enables integration with various authentication providers, ensuring a flexible and user-friendly experience.
Purpose
The main purpose of the Sign-In Page is to provide users with a straightforward method to log into their accounts. It supports multiple authentication providers, enhancing security and convenience.
Components
The Sign-In Page consists of the following key components:
- SignInForm: A component responsible for rendering the login fields, including user input for email and password.
- SignInButtons: A component that displays authentication options via third-party providers (e.g., Google, GitHub).
- Logo: Displays the Intuidy branding to reinforce product identity.
Settings
The Sign-In Page has several settings that control its appearance and behavior. Below is a detailed explanation of each setting:
1. metadata.title
- Input Type: String
- Description: Defines the title of the page as it appears in the browser tab. Changing this value will affect what users see when they have the Sign-In Page open in their browser.
- Default Value:
'Sign in'
2. Authentication Providers (getProviders)
- Input Type: Dynamic
- Description: Fetches the list of available authentication providers using the the authentication system library. This impacts which buttons are displayed for third-party sign-in options. If a new authentication provider is added to the application configuration, it will be available here upon the next fetch.
- Default Value: Derived from the authentication configuration.
3. Styling Classes
The Sign-In Page uses CSS styling:
- Container:
.flex,.min-h-screen,.w-full,.items-center,.justify-center,.bg-primaryBG,.dark:bg-primaryBG-dark,.px-4: These classes create a full-screen center-aligned flexbox container with a responsive design. - Sign-In Card:
.mt-6,.rounded-lg,.bg-accentBG,.dark:bg-accentBG-dark,.p-8,.shadow-xl: Applies spacing, corners, background color, and shadow styles to the sign-in card, enhancing visibility and aesthetics.
Expected Data
The Sign-In Page expects:
- User credentials (username/email and password) entered in the SignInForm.
- Authentication provider data fetched dynamically.
AI Integrations
Currently, there are no explicit AI integrations within this component. However, leveraging AI-based authentication methods (e.g., AI-driven biometric login) could enhance security in future releases.
Billing Impacts
The Sign-In Page does not directly impact billing; however, the number of active users signing in could indirectly affect subscription costs if the billing model is based on user count.
Use Cases & Examples
Use Cases
- User Authentication: Allow users to log into their accounts to access advanced analytics features of the Vantage platform.
- Third-Party Integrations: Enable users to sign in using various social media or enterprise accounts, improving user acquisition.
- Security Compliance: Ensure that the sign-in process adheres to security standards by integrating with trusted authentication providers.
Example Configuration
For a business aiming to improve its user authentication process, the following configuration might be applied:
export const metadata = { title: 'User Sign In for Analytics' };
// Providers configuration within the authentication setup
const authenticationProviders = {
google: { /* config options */ },
github: { /* config options */ },
// New provider can be added easily
};
// The result will be rendered dynamically based on the providers
const SignInPage = async () => {
const providers = await getProviders();
...
}In this configuration, the title has been changed to "User Sign In for Analytics" for clarity. The authentication providers are explicitly configured to ensure a smooth and responsive user experience, enhancing the overall sign-in process.
By carefully configuring the Sign-In Page, businesses can improve user engagement and maintain a secure access point to their analytics data.