get a bearer token for the mastodon api
Arguments
- client
rtoot client object created with get_client
- type
one of "public" or "user". See details
- browser
if
TRUE
(default) a browser window will be opened to authenticate, else the URL will be provided so you can copy/paste this into the browser yourself