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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user