New strategy structure

New ways of authentication can be added by following the next structure:

  1. Create new passport strategy under src/auth/[STRATEGY_NAME]

  2. Under it create file:

    1. strategy.ts - The main file containing authenticate function logic

  3. Import it into /src/auth/passport.ts

  4. register it using passport.use() function

The strategy can contain as many files as it wants in its own folder, but needs to have the main strategy.ts file from which it exports the strategy object

Last updated