dacastro4 / laravel-gmail

Laravel wrapper for the Gmail API
MIT License
292 stars 134 forks source link

Multi user credentials not working? #176

Closed sfinetti closed 3 years ago

sfinetti commented 3 years ago

Hi, maybe I'm using it wrong or I've understood the wrong meaning.

Does not GOOGLE_ALLOW_MULTIPLE_CREDENTIALS=true allow different users to access their respective email?

I'm using laravel-gmail to make users able to read and catalogate attachment from their gmail account directly into a webapp I'm developing for them. The problem is even with that flag set to true, when one user grants access to his email, all other users logged in the system (with different users) see the same gmail account, even if they are using it from another computer. Did I get this completely wrong? It's important to know, because in case, I need to completely remove this and find another way to let them read their mail from within the system.

sfinetti commented 3 years ago

It can be closed. To have multi user working, it's necessary to setUserId for each user and very time LaravelGmail class is invoked.