New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@sasaki-dev/react-login

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sasaki-dev/react-login

Our Sasaki login page

latest
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

Sasaki's React Login

Standardized Firebase login pattern for Sasaki products

Install

yarn add @sasaki-dev/react-login

Example

<ReactLogin
    // Firebase config
    config={config}

    // Image src path
    logo={DashiLogo}

    // Content for the user guide panel
    guide={<>
        <header>User Guide</header>
        <iframe title="User Guide" src="https://docs.google.com/document/d/e/2PACX-1vSxkp7VeI26uJyDZ7Pz_eV7ZKghZaQDDcbizP0YT0VthZmJ5iSwV3P8DzyA1KxA3DPO22xKVLeOK9bV/pub?embedded=true"></iframe>
    </>}

    // A list of screen grabs to display
    screens={[
        { src: TimelineScreen, alt: '', },
        { src: DataScreen, alt: '', },
        { src: ProjectDataScreen, alt: '', },
    ]}
/>

Required Props

config: FirebaseConfig

Your app's Firebase config.

Optional Props

contactEmail: string = 'strategies@sasaki.com'

Appears during certain phases of the login process when help might need to be requested directly.

The destination of the "Contact" icon link. If nothing is supplied, the icon will not appear.

emailEnabled: boolean = true

If this is set to false, then the only option available is logging in with a Sasaki account.

guide: ReactElement

What is rendered when a user clicks the "User Guide" icon. If nothing is supplied, then the icon will not appear.

logo: string

Populates the src attribute of the image element that sits above the forms.

onChange: (user: User|null) => any

An event that is emitted whenever the auth state changes.

screens: { src: string, alt: string }[]

The images that fade in when the login component mounts.

title: string|ReactElement

Text for beneath the the logo image.

whitelist: string[]

If supplied, will prevent users from creating accounts if the supplied email does not match any in the whitelist. If nothing is supplied, then all emails are valid for new account creation.

FAQs

Package last updated on 08 Dec 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts