From b43f379b3221d313374093e05f1891a90134f38e Mon Sep 17 00:00:00 2001 From: "Julien \"uj\" Abadji" Date: Mon, 21 Oct 2024 21:30:22 +0200 Subject: [PATCH] add comment about accessing AccessToken This needs more attention but adding a comment in the readme addresses the problem while a better solution is found. --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index a6e7576..b32bf99 100644 --- a/README.md +++ b/README.md @@ -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)