Skip to content

Commit

Permalink
add comment about accessing AccessToken
Browse files Browse the repository at this point in the history
This needs more attention but adding a comment in the readme addresses the problem while a better solution is found.
  • Loading branch information
Uinelj authored and mattn committed Oct 24, 2024
1 parent c4d23bb commit b43f379
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ func main() {
}

c := mastodon.NewClient(config)

// Token will be at c.Config.AccessToken
// and will need to be persisted.
// Otherwise you'll need to register and authenticate token again.
err = c.AuthenticateToken(context.Background(), token, "urn:ietf:wg:oauth:2.0:oob")
if err != nil {
log.Fatal(err)
Expand Down

0 comments on commit b43f379

Please sign in to comment.