Ivan Habunek
3f44d560c8
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
11 lines
346 B
Python
11 lines
346 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from collections import namedtuple
|
|
|
|
App = namedtuple('App', ['instance', 'base_url', 'client_id', 'client_secret'])
|
|
User = namedtuple('User', ['instance', 'username', 'access_token'])
|
|
|
|
DEFAULT_INSTANCE = 'mastodon.social'
|
|
|
|
CLIENT_NAME = 'toot - Mastodon CLI Interface'
|
|
CLIENT_WEBSITE = 'https://github.com/ihabunek/toot'
|