fix: api bad request when authenticating user with fediverse
This commit is contained in:
parent
4340c07660
commit
90f6663e18
1 changed files with 2 additions and 1 deletions
|
@ -34,7 +34,8 @@ def check_user_cred_exists(instance: str, userid: int) -> bool:
|
|||
async def handle_token(instance,mastodon, message: Message):
|
||||
mastodon.log_in(
|
||||
code=message.text,
|
||||
to_file=f"secrets/realbot_{instance}_{message.from_user.id}_usercred.secret"
|
||||
to_file=f"secrets/realbot_{instance}_{message.from_user.id}_usercred.secret",
|
||||
scopes=['read:accounts', 'read:statuses', 'write:media', 'write:statuses']
|
||||
)
|
||||
|
||||
async def handle_auth(message: Message, state: FSMContext):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue