@doneisbetter/sso
Version:
A secure, privacy-focused SSO solution with ephemeral token handling
13 lines • 550 B
JavaScript
var _a;
// SSO configuration
export const config = {
cors: {
allowedOrigins: ((_a = process.env.ALLOWED_ORIGINS) === null || _a === void 0 ? void 0 : _a.split(',')) || ['http://localhost:3000'],
allowedMethods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'],
allowedHeaders: ['Content-Type', 'Authorization', 'X-Requested-With'],
exposedHeaders: ['Content-Length', 'X-RateLimit-Limit', 'X-RateLimit-Remaining'],
maxAge: 86400, // 24 hours
credentials: true,
}
};
//# sourceMappingURL=config.js.map