I followed up LoopBack JWT tutorial, but it didn't mention how to store credentials in a real datasource (ex. RDBM datasource)
To do that I simply created a datasource with connector: 'postgresql' but it didn't work because I always get this error message!
Request POST /signup failed with status code 500. error: relation "public.user" does not exist
at Parser.parseErrorMessage (/home/laptop/LoopBack/multitenancy/node_modules/pg-protocol/src/parser.ts:357:11)
at Parser.handlePacket (/home/laptop/LoopBack/multitenancy/node_modules/pg-protocol/src/parser.ts:186:21)
at Parser.parse (/home/laptop/LoopBack/multitenancy/node_modules/pg-protocol/src/parser.ts:101:30)
at Socket.<anonymous> (/home/laptop/LoopBack/multitenancy/node_modules/pg-protocol/src/index.ts:7:48)
at Socket.emit (events.js:315:20)
at addChunk (internal/streams/readable.js:309:12)
at readableAddChunk (internal/streams/readable.js:284:9)
at Socket.Readable.push (internal/streams/readable.js:223:10)
at TCP.onStreamRead (internal/stream_base_commons.js:188:23)
You can find the full source code here
BTW, When I run npm run migrate I expect User table to be generated because user.controller.ts contains on an extending of User class, but it didn't!
May you please guide me how to store credentials in RDBM datasource.