DEVELOPMENT ENVIRONMENT

~liljamo/deck-builder

5760a73818cea6b98e68968904e986534766a89b — Jonni Liljamo 1 year, 9 months ago 3b77fff
chore(server): add note about existing cookie authentication
1 files changed, 4 insertions(+), 0 deletions(-)

M server/src/systems/event/mod.rs
M server/src/systems/event/mod.rs => server/src/systems/event/mod.rs +4 -0
@@ 33,6 33,10 @@ pub(crate) fn auth_events(
) {
    for events in ev.iter() {
        for (user_key, auth) in events.read::<Auth>() {
            // 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