Validating if a user is actually logged in (with mastodon and token) #855
Unanswered
GerritKuilder
asked this question in
Q&A
Replies: 1 comment
-
|
You can use
Example: const masto = await login(...);
const me = await masto.v1.accounts.verifyCredentials();
console.info(`Logged in as ${me.acct}`);I hope it helps. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello All,
struggling with the following:
I am trying to validate i a login was succesful or not:
but I cannot figure out how I can check if the login was successful or not.
The masto object does not give me many clues either.
I am trying to understand the docs but so far no luck.
Any guidance would be appreciated.
Kind Regards,
Gerrit Kuilder
Beta Was this translation helpful? Give feedback.
All reactions