jens-maus / node-unifi

NodeJS class for querying/controlling a UniFi-Controller (UDM-Pro, UDM-SE, UDM, UDR, UDW, CloudKey Gen1/Gen2) from Ubiquiti (www.ui.com)
MIT License
140 stars 50 forks source link

InvalidAccessToken error #174

Open thier001 opened 1 year ago

thier001 commented 1 year ago

Hi, i use to work with this great package .The webapi request with theauthorize-guest cmd was working but now i am facing an error . I try to send a post request with postman , i get alternatively api.err.LoginRequired and api.err.InvalidAccessToken when i add username and password .

andrew-codes commented 1 year ago

Creating a controller, logging in, and then using the authorizeGuest method gives me an error with data: { message: 'Invalid CSRF Token' }. I had been using this successfully for some unknown period of time; not sure when it began breaking. I have updated to v2.2.0 when getting the above error message.

Let me know if you need any more details, I'm happy to provide what I am able. Thanks!

ideen1 commented 1 year ago

@andrew-codes @thier001 I have this same issue, did you guys find a solution?

jens-maus commented 1 year ago

Is this ticket/problem still valid and does this problem still happen? If so, please provide example source code on the node-unifi use case.