Node.js Plugin Event Reference
Create Server Auth
Creates the Authorization directory with the selected strategy
Event Name
CreateServerAuth
Event Parameters
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
Was this page helpful?