2FA

default discord avatar
christopher.nowlan
5 months ago
8

Is there a way to set up 2FA for logging into Payload?

  • default discord avatar
    KasparTr
    5 months ago

    Yes, PayloadCMS uses PasswordJS authentication strategies.


    https://payloadcms.com/docs/authentication/config#strategies

    Though I haven't manage to get Google Authenticator app working yet. Need more time with that. If anybody has successfully implemented a Google Auth for MFA login and is willing to share the code, much appreciated. 🙏

  • default discord avatar
    noheadphones
    5 months ago

    that's something on my list of plugins to make



    maybe I can hack something together early next week if nobody else gets to it before me



    you would use the prelogin hooks and a few custom routes to setup 2FA with speakeasy

  • default discord avatar
    christopher.nowlan
    5 months ago

    A plugin would be great

  • default discord avatar
    CAPTKEN
    5 months ago

    I second that - thanks @noheadphones

  • default discord avatar
    noheadphones
    5 months ago

    it's a tough one, I don't think an additional strategy is the ideal solution here but im still doing research



    its not as simple as i thought initially 😅

Open the post
Continue the discussion in Discord
Like what we're doing?
Star us on GitHub!

Star

Connect with the Payload Community on Discord

Discord

online

Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.