Azure-Samples / active-directory-node-webapi

A NodeJS web API that is secured using Azure AD and OAuth 2.0 access tokens.
105 stars 64 forks source link

User is undefined #7

Closed karlbohlmark closed 9 years ago

karlbohlmark commented 9 years ago

https://github.com/AzureADSamples/WebAPI-Nodejs/blob/master/node-server/server.js#L372

User.findOrCreate

I'm guessing User should be a Mongoose model, but it is not defined.

brandwe commented 9 years ago

Actually I use in memory cache for this. It's left as an exercise to the reader to implement that storage in mongodb.