Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save michaelfreund/412091675d36a04eb0dfdbb0c8d22ec6 to your computer and use it in GitHub Desktop.
Save michaelfreund/412091675d36a04eb0dfdbb0c8d22ec6 to your computer and use it in GitHub Desktop.
LoopBack Component Passport Local Auth Strategy Custom Email Verification
const PassportProviders = require('../providers.json');
const LocalPassportConfig = PassportProviders['local'];
LocalPassportConfig.emailVerificationCallback = function (user) {
if (user && user.customAttribute) {
return true;
}
return false;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment