More progress, still a long way to go

This commit is contained in:
Ryan Ward
2026-05-07 14:37:26 -05:00
parent a41cbd8cc7
commit f8f2c6bff6
25 changed files with 755 additions and 5387 deletions
-6
View File
@@ -1323,12 +1323,6 @@ impl ServerApiProvider {
ctx.dispatch_global_action("app:log_out", ());
}
ServerApiEvent::NeedsReauth => {
// AuthManager depends on a reference to ServerApi, so ServerApi can't easily
// hold a ref to AuthManager. To get around this, we emit an event on ServerApi
// and handle calling the AuthManager here instead.
AuthManager::handle(ctx).update(ctx, |auth_manager, ctx| {
auth_manager.set_needs_reauth(true, ctx);
});
}
// Re-emit the event for subscribers.
// TODO: we probably want a different type for the event emitted to subscribers