Skip to content

Latest commit

 

History

History

memory

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

In-Memory Example

DO NOT USE THIS EXAMPLE IN PRODUCTION

The object exposed in model.js could be directly passed into the model parameter of the config object when initiating.

For example:

var memorystore = require('model.js');

app.oauth = oauthserver({
  model: memorystore
});

Dump

You can also dump the contents of the memory store (for debugging) like so:

memorystore.dump();