Description
Hi everyone!
I am using npm 6.14.8.
I have a working implementation of authentication from the loopback4-example-shopping. when trying to add the refresh token capability, I am facing the following:
Unhandled error in POST /refresh-login: 500 ResolutionError: The key 'services.authentication.jwt.refresh.tokenservice' is not bound to any value
in context RequestContext-fFKtBWS_Tw2PmEVjTh7oKQ-3 (context: RequestContext-fFKtBWS_Tw2PmEVjTh7oKQ-3, binding: services.authentication.jwt.refresh.tokenservice, resolutionPath: controllers.AuthController --> @AuthController.constructor[6])
at RequestContext.getValueOrPromise (C:\avokap\backend\node_modules@loopback\context\src\context.ts:810:13)
at C:\avokap\backend\node_modules@loopback\context\src\resolver.ts:159:20
at C:\avokap\backend\node_modules@loopback\context\src\resolution-session.ts:157:13
at tryCatchFinally (C:\avokap\backend\node_modules@loopback\context\src\value-promise.ts:222:14)
at Object.tryWithFinally (C:\avokap\backend\node_modules@loopback\context\src\value-promise.ts:197:10)
at Function.runWithInjection (C:\avokap\backend\node_modules@loopback\context\src\resolution-session.ts:156:12)
at resolve (C:\avokap\backend\node_modules@loopback\context\src\resolver.ts:143:38)
at C:\avokap\backend\node_modules@loopback\context\src\resolver.ts:246:12
at Object.resolveList (C:\avokap\backend\node_modules@loopback\context\src\value-promise.ts:169:28)
at resolveInjectedArguments (C:\avokap\backend\node_modules@loopback\context\src\resolver.ts:224:10)
at Object.instantiateClass (C:\avokap\backend\node_modules@loopback\context\src\resolver.ts:62:25)
at C:\avokap\backend\node_modules@loopback\context\src\binding.ts:748:29
at Binding._getValue (C:\avokap\backend\node_modules@loopback\context\src\binding.ts:604:14)
at C:\avokap\backend\node_modules@loopback\context\src\binding.ts:479:23
at C:\avokap\backend\node_modules@loopback\context\src\resolution-session.ts:122:13
at tryCatchFinally (C:\avokap\backend\node_modules@loopback\context\src\value-promise.ts:222:14)
Please, can anyone help?
Many Thanks in advance
Tofik