forked from baron/baron-sso
style: format dart files to pass formatting check
This commit is contained in:
@@ -849,10 +849,10 @@ class _DashboardScreenState extends ConsumerState<DashboardScreen> {
|
|||||||
final userName = (profile?.name.trim().isNotEmpty ?? false)
|
final userName = (profile?.name.trim().isNotEmpty ?? false)
|
||||||
? profile!.name
|
? profile!.name
|
||||||
: (profile?.email.trim().isNotEmpty ?? false)
|
: (profile?.email.trim().isNotEmpty ?? false)
|
||||||
? profile!.email
|
? profile!.email
|
||||||
: (profile?.phone.trim().isNotEmpty ?? false)
|
: (profile?.phone.trim().isNotEmpty ?? false)
|
||||||
? profile!.phone
|
? profile!.phone
|
||||||
: tr('ui.userfront.profile.user_fallback', fallback: 'User');
|
: tr('ui.userfront.profile.user_fallback', fallback: 'User');
|
||||||
final departmentValue =
|
final departmentValue =
|
||||||
profile?.tenant?.name ?? profile?.department ?? '';
|
profile?.tenant?.name ?? profile?.department ?? '';
|
||||||
final department = departmentValue.isNotEmpty
|
final department = departmentValue.isNotEmpty
|
||||||
|
|||||||
@@ -86,11 +86,15 @@ Future<void> _silentSessionRecovery() async {
|
|||||||
useCookie: false,
|
useCookie: false,
|
||||||
);
|
);
|
||||||
if (status == 401 || status == 403) {
|
if (status == 401 || status == 403) {
|
||||||
_log.warning("[SessionRecovery] Local token is invalid. Clearing store.");
|
_log.warning(
|
||||||
|
"[SessionRecovery] Local token is invalid. Clearing store.",
|
||||||
|
);
|
||||||
AuthTokenStore.clear();
|
AuthTokenStore.clear();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
_log.info("[SessionRecovery] Local token is valid. Skipping cookie check.");
|
_log.info(
|
||||||
|
"[SessionRecovery] Local token is valid. Skipping cookie check.",
|
||||||
|
);
|
||||||
return;
|
return;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
_log.info("[SessionRecovery] Failed to verify local token: $e");
|
_log.info("[SessionRecovery] Failed to verify local token: $e");
|
||||||
|
|||||||
Reference in New Issue
Block a user