Hello,
I’m having an issue with REST API authentication in Odoo 18, let me explain:
I’m developing an application with two components — a backend (Odoo) and a frontend (ReactJS).
On the Odoo side, I’ve created an authentication method where I call:
uid = request.session.authenticate(db_name, login, password)
But I’m getting the following error:
ERROR pioloop odoo.addons.property_rental.controllers.api.auth: Authentication error: Session.authenticate() takes 3 positional arguments but 4 were given
However, I don’t see where 4 parameters are being passed.
Has anyone encountered this kind of issue before?
For your information, I’m a beginner in Odoo.
Thanks in advance for your help.