SmythOS Studio: Open-Source Visual AI Agent Builder and deployable runtime stack from SmythOS. Start with an intuitive drag-and-drop workspace, extend with custom code, and deploy your agents anywhere — local, cloud, or edge — with full governance and control.
JavaScript a2aagentic-aiai-agentsdevtoolsmcp-clientn8n-alternativeno-codeopen-sourceorchestrationsmythosvisual-builder
import passport from 'passport';
import { strategyConfig } from '../helper/strategyConfig';
export const initializePassport = () => {
Object.keys(strategyConfig).forEach((service) => {
const { Strategy, config, processStrategy } = strategyConfig[service];
service = service === 'oauth2' ? service : 'oauth';
//console.log({service})
passport.use(`${service}`, new Strategy(config, processStrategy));
});
passport.serializeUser((user, done) => done(null, user));
passport.deserializeUser((obj, done) => done(null, obj));
};