-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
500 ResolutionError: The key 'security.user' is not bound to any value #7079
Comments
Because you are using @authenticate.skip()
export class StoreFrontController {
constructor(
@inject(SecurityBindings.USER, {optional: true})
public user: UserProfile,
@repository(TblSellerProductMasterRepository)
public productsMasterRepo: TblSellerProductMasterRepository
){}
Of course that means, that you need to also import the following. import {SecurityBindings, UserProfile} from '@loopback/security'; On a side note, be aware that you don't need to specify |
Closing due to inactivity. |
I haved injected user object in constructor yet am receiving this issue
|
I am also getting the same error fellas! |
Hello Everyone,
I'm having the following issue since couple of weeks. I've tried all possible ways but no luck.
Code:
Error Log:
Your help is highly appreciated.
Thanks in advance.
The text was updated successfully, but these errors were encountered: