0
0
mirror of https://github.com/ihabunek/toot.git synced 2025-10-21 19:44:16 -04:00

Store access tokens for multiple instances

This makes it so an app is created only once for each instance, instead
of being re-created on each login. Prevents accumulations of authroized
apps in https://mastodon.social/oauth/authorized_applications
This commit is contained in:
Ivan Habunek
2017-04-18 16:16:24 +02:00
parent ed20c7fded
commit 3f44d560c8
7 changed files with 137 additions and 94 deletions

View File

@@ -1,8 +1,9 @@
class MockResponse:
def __init__(self, response_data={}, ok=True):
self.ok = ok
def __init__(self, response_data={}, ok=True, is_redirect=False):
self.response_data = response_data
self.ok = ok
self.is_redirect = is_redirect
def raise_for_status(self):
pass