pub async fn create_session(
pool: &SqlitePool,
cfg: &Config,
user_id: Uuid,
client_ip: Option<String>,
) -> Result<Cookie<'static>, Error>Expand description
Insert a fresh session for the given user and produce the signed cookie to set on the response.
ยงErrors
Returns Error::Database on insert failure.