Closed sam701 closed 3 years ago
Thanks for the report, I just added a support for a :sub
option on master. You'd use it like this:
source = {:service_account, credentials, scope: "https://www.googleapis.com/auth/gmail.readonly", sub: "abc@example.com"}
please try it out and let us know if you run into any issues!
@wojtekmach It works. Thanks a bunch for the quick fix. 👍
I'd like to call Gmail API with a service account key. Goth
1.2.0
hasGoth.Token.for_scope/2
, where I can put the user ID in the second argument. But how can I achieve the same with Goth1.3.0
?Here is my code