From 5760a73818cea6b98e68968904e986534766a89b Mon Sep 17 00:00:00 2001 From: Jonni Liljamo Date: Mon, 13 Mar 2023 11:37:58 +0200 Subject: [PATCH] chore(server): add note about existing cookie authentication --- server/src/systems/event/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/src/systems/event/mod.rs b/server/src/systems/event/mod.rs index 5def05e..8c6b914 100644 --- a/server/src/systems/event/mod.rs +++ b/server/src/systems/event/mod.rs @@ -33,6 +33,10 @@ pub(crate) fn auth_events( ) { for events in ev.iter() { for (user_key, auth) in events.read::() { + // TODO: accept a third type of authentication: existing session + // the client passes a cookie that it had stored, + // and we verify it with the api, returning the very same aa details. + match auth.username { Some(username) => { // register -- 2.44.1