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!