MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / authenticate

Function authenticate

gql-cli/src/cli/gqlcli.rs:330–338  ·  view source on GitHub ↗

Authenticate a user and create a session

(
    coordinator: &Arc<QueryCoordinator>,
    username: &str,
    password: &str,
)

Source from the content-addressed store, hash-verified

328
329/// Authenticate a user and create a session
330fn authenticate(
331 coordinator: &Arc<QueryCoordinator>,
332 username: &str,
333 password: &str,
334) -> Result<String, Box<dyn std::error::Error>> {
335 coordinator
336 .authenticate_and_create_session(username, password)
337 .map_err(|e| e.into())
338}
339
340/// Print help message
341fn print_help() {

Callers 2

handle_gqlFunction · 0.85
handle_queryFunction · 0.85

Calls 1

Tested by

no test coverage detected