payloadcms_otp_plugin
Version:
A comprehensive One-Time Password (OTP) authentication plugin for Payload CMS that enables secure passwordless authentication via SMS and email
19 lines (18 loc) • 497 B
JavaScript
export const enhanceUsersCollection = (existingConfig)=>({
...existingConfig,
fields: [
...existingConfig.fields,
{
name: 'mobile',
type: 'text',
unique: true,
index: true
},
{
name: 'mobileVerified',
type: 'checkbox',
defaultValue: false
}
]
});
//# sourceMappingURL=enhanceUserCollection.js.map