I need anonymous login for my project and i followed every step here and on internet.
Error i get is: "Invalid authentication information (strategy not allowed in authStrategies)"
I have: authentication.register('anonymous', new AnonymousStrategy());
and i see it in console.log(authentication);
but no matter what i try i get that error. Client side i try to:
user = await client.authenticate({strategy: 'anonymous', name: credentials.email, email: 'asd', password: '123', room: '1'});
.. and every possible combination i could try.. it will just say that there is no such strategy.
Also, postman request POST /authenticate
{ "strategy": "anonymous"}
returns: "message": "Invalid authentication information (strategy not allowed in authStrategies)",
System configuration (optional)
Module versions (especially the part that's not working):
Comment/Problem
I need anonymous login for my project and i followed every step here and on internet. Error i get is: "Invalid authentication information (strategy not allowed in authStrategies)"
I have: authentication.register('anonymous', new AnonymousStrategy()); and i see it in console.log(authentication);
but no matter what i try i get that error. Client side i try to:
user = await client.authenticate({strategy: 'anonymous', name: credentials.email, email: 'asd', password: '123', room: '1'});
.. and every possible combination i could try.. it will just say that there is no such strategy.this is my authentication.js:
Also, postman request POST /authenticate
{ "strategy": "anonymous"}
returns: "message": "Invalid authentication information (strategy not allowed in authStrategies)",System configuration (optional)
Module versions (especially the part that's not working):
NodeJS version: v12.16.0
Operating System: Windows 10
Browser Version: Chrome latest