Skip to main content

Module Support

FluidAuth Express is designed to be flexible and compatible with different module systems. Whether you use CommonJS or ES Modules, FluidAuth Express supports both, ensuring seamless integration with various environments.

CommonJS

For projects using CommonJS, you can import FluidAuth Express as follows:

const { AuthService } = require("@fluidauth/express");

ES Modules

For projects using ES Modules, you can import FluidAuth Express like this:

import { AuthService } from "@fluidauth/express";

Summary

FluidAuth Express supports both CommonJS and ES Modules, allowing you to integrate the package into your project regardless of your module system. This compatibility ensures a smooth and flexible development experience.