[READ ONLY MIRROR] Open Source TikTok alternative built on AT Protocol github.com/sprksocial/client
flutter atproto video dart
10
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(oauth): login after signup

+16 -6
+2 -3
android/app/src/main/AndroidManifest.xml
··· 11 11 <activity 12 12 android:name=".MainActivity" 13 13 android:exported="true" 14 - android:launchMode="singleTop" 15 - android:taskAffinity="" 14 + android:launchMode="singleTask" 16 15 android:theme="@style/LaunchTheme" 17 16 android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" 18 17 android:hardwareAccelerated="true" ··· 38 37 <action android:name="android.intent.action.VIEW"/> 39 38 <category android:name="android.intent.category.DEFAULT"/> 40 39 <category android:name="android.intent.category.BROWSABLE"/> 41 - <data android:scheme="so.sprk"/> 40 + <data android:scheme="sprk"/> 42 41 </intent-filter> 43 42 </activity> 44 43 <!-- Don't delete the meta-data below.
+14
lib/src/core/auth/data/repositories/auth_repository_impl.dart
··· 441 441 return LoginResult.failed('PDS endpoint not found'); 442 442 } 443 443 444 + // Fetch session info to get DID and handle if not already set 445 + // This is needed for registration flow where handle/DID aren't known upfront 446 + if (_did == null || _handle == null) { 447 + try { 448 + final sessionResponse = await _atProto!.server.getSession(); 449 + _did = sessionResponse.data.did; 450 + _handle = sessionResponse.data.handle; 451 + _logger.d('Fetched session info - DID: $_did, Handle: $_handle'); 452 + } catch (e) { 453 + _logger.e('Failed to fetch session info', error: e); 454 + return LoginResult.failed('Failed to get session info: $e'); 455 + } 456 + } 457 + 444 458 // Save session 445 459 await _saveSession(); 446 460
-3
lib/src/features/auth/ui/pages/login_page.dart
··· 59 59 callbackUrl = await FlutterWebAuth2.authenticate( 60 60 url: authUrl, 61 61 callbackUrlScheme: 'sprk', 62 - options: const FlutterWebAuth2Options( 63 - intentFlags: ephemeralIntentFlags, 64 - ), 65 62 ); 66 63 } on PlatformException catch (e) { 67 64 if (e.code == 'CANCELED') {