{"action":"created","issue":{"url":"https://api.github.com/repos/strongloop/loopback-example-passport/issues/25","labels_url":"https://api.github.com/repos/strongloop/loopback-example-passport/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/loopback-example-passport/issues/25/comments","events_url":"https://api.github.com/repos/strongloop/loopback-example-passport/issues/25/events","html_url":"https://github.com/strongloop/loopback-example-passport/issues/25","id":56231667,"number":25,"title":"The model type must be a constructor","user":{"login":"jmls","id":929523,"avatar_url":"https://avatars.githubusercontent.com/u/929523?v=3","gravatar_id":"","url":"https://api.github.com/users/jmls","html_url":"https://github.com/jmls","followers_url":"https://api.github.com/users/jmls/followers","following_url":"https://api.github.com/users/jmls/following{/other_user}","gists_url":"https://api.github.com/users/jmls/gists{/gist_id}","starred_url":"https://api.github.com/users/jmls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmls/subscriptions","organizations_url":"https://api.github.com/users/jmls/orgs","repos_url":"https://api.github.com/users/jmls/repos","events_url":"https://api.github.com/users/jmls/events{/privacy}","received_events_url":"https://api.github.com/users/jmls/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"superkhau","id":1617364,"avatar_url":"https://avatars.githubusercontent.com/u/1617364?v=3","gravatar_id":"","url":"https://api.github.com/users/superkhau","html_url":"https://github.com/superkhau","followers_url":"https://api.github.com/users/superkhau/followers","following_url":"https://api.github.com/users/superkhau/following{/other_user}","gists_url":"https://api.github.com/users/superkhau/gists{/gist_id}","starred_url":"https://api.github.com/users/superkhau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superkhau/subscriptions","organizations_url":"https://api.github.com/users/superkhau/orgs","repos_url":"https://api.github.com/users/superkhau/repos","events_url":"https://api.github.com/users/superkhau/events{/privacy}","received_events_url":"https://api.github.com/users/superkhau/received_events","type":"User","site_admin":false},"milestone":null,"comments":11,"created_at":"2015-02-02T12:36:27Z","updated_at":"2015-11-30T23:06:01Z","closed_at":"2015-11-30T23:06:01Z","body":"I'm trying to use the example code in this app in mine, but am running into this error\r\n\r\n```server-0 (err): AssertionError: The model type must be a constructor\r\nserver-0 (err):     at Function.registry.getModelByType (/usr/local/lib/node_modules/loopback/lib/registry.js:286:3)\r\nserver-0 (err):     at PassportConfigurator.setupModels (/usr/local/lib/node_modules/loopback-component-passport/lib/passport-configurator.js:33:70)\r\nserver-0 (err):     at Object.<anonymous> (/opt/nodegloo/server/server.js:71:22)\r\nserver-0 (err):     at Module._compile (module.js:456:26)\r\nserver-0 (err):     at Object.Module._extensions..js (module.js:474:10)\r\nserver-0 (err):     at Module.load (module.js:356:32)\r\nserver-0 (err):     at Function.Module._load (module.js:312:12)\r\nserver-0 (err):     at /usr/local/lib/node_modules/pm2/lib/ProcessContainer.js:187:23```\r\n\r\nthis is in the passportConfigurator.setupModels() function\r\n\r\n it seems when this is being called, app.models.user / userIdentity / userCredential are undefined and therefore causing the problem\r\n\r\nAm I missing something, or is there a bug / mistake / setup problem ?\r\n\r\nthanks"},"comment":{"url":"https://api.github.com/repos/strongloop/loopback-example-passport/issues/comments/160790595","html_url":"https://github.com/strongloop/loopback-example-passport/issues/25#issuecomment-160790595","issue_url":"https://api.github.com/repos/strongloop/loopback-example-passport/issues/25","id":160790595,"user":{"login":"superkhau","id":1617364,"avatar_url":"https://avatars.githubusercontent.com/u/1617364?v=3","gravatar_id":"","url":"https://api.github.com/users/superkhau","html_url":"https://github.com/superkhau","followers_url":"https://api.github.com/users/superkhau/followers","following_url":"https://api.github.com/users/superkhau/following{/other_user}","gists_url":"https://api.github.com/users/superkhau/gists{/gist_id}","starred_url":"https://api.github.com/users/superkhau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superkhau/subscriptions","organizations_url":"https://api.github.com/users/superkhau/orgs","repos_url":"https://api.github.com/users/superkhau/repos","events_url":"https://api.github.com/users/superkhau/events{/privacy}","received_events_url":"https://api.github.com/users/superkhau/received_events","type":"User","site_admin":false},"created_at":"2015-11-30T23:06:01Z","updated_at":"2015-11-30T23:06:01Z","body":"Closing due to inactivity. I will reopen it if you guys are still running into issues."}}