import { PassportStatic } from "passport";
import { AuthContext } from "../../Auth.context";
import { initEmailStrategy } from "./emailStrategy";
import { initJWTStrategy } from "./jwtStrategy";

// Export a function that will be used to configure Passport authentication
export const configurePassportAuth = (passport: PassportStatic) => {
  passport.use("local-email", initEmailStrategy(AuthContext.getInstance()));
  passport.use("local-jwt", initJWTStrategy(AuthContext.getInstance()));
};
