idle
This commit is contained in:
@@ -17,7 +17,10 @@ class SessionBloc extends Bloc<SessionEvent, SessionState> {
|
||||
on<SessionRestored>(_onSessionRestored);
|
||||
}
|
||||
|
||||
void _onSessionStarted(SessionStarted event, Emitter<SessionState> emit) async {
|
||||
void _onSessionStarted(
|
||||
SessionStarted event,
|
||||
Emitter<SessionState> emit,
|
||||
) async {
|
||||
final expiresAt = DateTime.now().add(
|
||||
const Duration(minutes: 15),
|
||||
); // Match Go
|
||||
@@ -37,7 +40,10 @@ class SessionBloc extends Bloc<SessionEvent, SessionState> {
|
||||
emit(SessionExpiredState());
|
||||
}
|
||||
|
||||
void _onSessionRefreshed(SessionRefreshed event, Emitter<SessionState> emit) async {
|
||||
void _onSessionRefreshed(
|
||||
SessionRefreshed event,
|
||||
Emitter<SessionState> emit,
|
||||
) async {
|
||||
final expiresAt = DateTime.now().add(const Duration(minutes: 15));
|
||||
|
||||
// Update stored token
|
||||
|
||||
Reference in New Issue
Block a user