fn gen_session_key(tenant: &str, token: &str) -> String
Expand description

Generates a Redis key for the session to be stored on Redis. This key name manipulation occurs mostly to avoid conflicts in multi-tenant scenarios. The output has a format such as <TENANT>$SESSION:<TOKEN>.