mattn / go-mastodon

mastodon client for golang
MIT License
600 stars 85 forks source link

AccessToken is private #114

Closed RandomErrorMessage closed 5 years ago

RandomErrorMessage commented 5 years ago

When trying to work with AuthenticateToken I found it quite confusing on how to get the returned AccessToken. It's currently located in a private member of the client and it's unclear how the developer intends for you to save it for future use.

I ended up just temporarily modifying the code to just print it out to console, but that seems like an awful solution. I think a could solution would be return it on AuthenticateToken().

dtluna commented 5 years ago

I would like to save the access token too!