Rocky_Mountain_Vending/.pnpm-store/v10/files/08/4271aee14d675de30b2daac9493a96279c2d540cb1534ba75e6b8df1819281b2f5b1684a39a778b2b85e860611dc09e7e26c63440f3761c0a0c7284e518cda
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

29 lines
606 B
Text

'use strict';
const FormPrompt = require('../prompts/form');
const defaultAuthenticate = () => {
throw new Error('expected prompt to have a custom authenticate method');
};
const factory = (authenticate = defaultAuthenticate) => {
class AuthPrompt extends FormPrompt {
constructor(options) {
super(options);
}
async submit() {
this.value = await authenticate.call(this, this.values, this.state);
super.base.submit.call(this);
}
static create(authenticate) {
return factory(authenticate);
}
}
return AuthPrompt;
};
module.exports = factory();