diff --git a/start.py b/start.py
index 6c2e91d..b2c3d84 100644
--- a/start.py
+++ b/start.py
@@ -42,9 +42,16 @@ async def setup_app():
@app.route('/')
async def home():
if 'access_token' in session:
- return '''
+ # Initialize Mastodon with the access token
+ mastodon = Mastodon(
+ access_token=session['access_token'],
+ api_base_url=config['instance_url']
+ )
+ user = await mastodon.account_verify_credentials()
+ return f'''
Logged in successfully!
- Logout'''+mastodon.me().username+'''
+ Logout
+ Username: {user['username']}
'''
return 'Login with Mastodon'