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