import { createAuthExtension } from '@framers/agentos-extensions/auth';
const { authService, subscriptionService } = createAuthExtension({
auth: {
jwtSecret: process.env.JWT_SECRET!,
jwtExpiresIn: '7d',
},
subscription: {
defaultTier: 'free',
},
});
// Inject into AgentOS
await agentos.initialize({
authService,
subscriptionService,
});
Create a complete auth extension with both auth and subscription services