New strategy structure
New ways of authentication can be added by following the next structure:
Create new passport strategy under
src/auth/[STRATEGY_NAME]Under it create file:
strategy.ts- The main file containing authenticate function logic
Import it into
/src/auth/passport.tsregister it using
passport.use()function
Last updated