Event Name

CreateServerAuth

Event Parameters

srcDir
string

The target directory the auth folder will be generated in.

In order to set the auth strategy, we should use the before lifecycle event and call the skipDefaultBehavior util. As a result, the default event won’t run, but we would have to provide our logic in the after lifecycle event:

  • the path to our static auth folder
  • the path in which we want the auth folder to be generated in