firecmsco / firecms

Awesome Firebase/Firestore-based CMS. The missing admin panel for your Firebase project!
https://firecms.co
Other
1.13k stars 185 forks source link

Email login #600

Closed gerontius closed 8 months ago

gerontius commented 8 months ago

I've installed firecms on firebase. It's all working good except I can't see any other option except a Google login. Email + password Auth is enabled on the firebase project. I installed using the npx create command outlined in the quick start docs. I saw a thread on here suggesting that the options have been automatic for a while.

fgatti675 commented 8 months ago

Hi @gerontius ! What version of FireCMS are you using? Or are you accessing through app.firecms.co ?

gerontius commented 8 months ago

hi @fgatti675 Self hosted. Im not 100% sure but i installed using npx create-firecms-app which installed create-firecms-app@2.0.0.

Thanks

gerontius commented 8 months ago

Hi @fgatti675

Any further thoughts on this. Login with Google could be problematic for my use case.

fgatti675 commented 8 months ago

Hi, in the version you are using there is a signInOptions prop you can use to define the different login options:

    return <FirebaseCMSApp
        name={"My Online Shop"}
        authentication={myAuthenticator}
        allowSkipLogin={true}
        plugins={[dataEnhancementPlugin]}
        signInOptions={[
            "password",
            "google.com"
            // 'anonymous',
            // 'phone',
            // 'facebook.com',
            // 'github.com',
            // 'twitter.com',
            // 'microsoft.com',
            // 'apple.com'
        ]}
        textSearchController={textSearchController}
        firestoreIndexesBuilder={firestoreIndexesBuilder}
        logo={logo}
        collections={(params) => collections}
        views={customViews}
        firebaseConfig={firebaseConfig}
        onFirebaseInit={onFirebaseInit}
        toolbarExtraWidget={githubLink}
        LoginView={CustomLoginView}
        onAnalyticsEvent={onAnalyticsEvent}
    />;