#Adding Custom Passport Strategies for Authentication Tutorial

2 messages · Page 1 of 1 (latest)

urban vectorBOT
#

Hello! Is there any tutorial about adding custom passport strategies for authentication, I'm trying to do this

export const users: CollectionConfig = {
  slug: 'users',
  auth: {
    strategies: [
      {
        name: 'bitcoin',
        strategy: (payload) => new BitcoinSignatureStrategy(payload),
      },
    ],
    disableLocalStrategy: true,
  },
  fields: [{ name: 'address', type: 'text' }],
};

Based on the documentation, but I don't get how to create/access athentication endpoints based on the setup above, like api/users/???

thanks in advance!

cedar mauveBOT
#

Original message from @amber thistle - Moved from #general message