Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
import 'dart:convert';
import 'package:appflowy_backend/log.dart';
import 'package:appflowy_backend/protobuf/flowy-user/user_profile.pb.dart';
extension UserProfilePBExtension on UserProfilePB {
String? get authToken {
try {
final map = jsonDecode(token) as Map<String, dynamic>;
return map['access_token'] as String?;
} catch (e) {
Log.error('Failed to decode auth token: $e');
return null;
}
}
}