MCPcopy
hub / github.com/strongloop/loopback / givenLocalTokenModel

Function givenLocalTokenModel

test/access-token.test.js:864–875  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

862}
863
864function givenLocalTokenModel() {
865 const app = loopback({localRegistry: true, loadBuiltinModels: true});
866 app.dataSource('db', {connector: 'memory'});
867
868 const User = app.registry.getModel('User');
869 app.model(User, {dataSource: 'db'});
870
871 const Token = app.registry.getModel('AccessToken');
872 app.model(Token, {dataSource: 'db'});
873
874 return Token;
875}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…