diff options
| author | t <t@tjp.lol> | 2026-06-13 12:09:00 -0600 |
|---|---|---|
| committer | t <t@tjp.lol> | 2026-06-15 15:08:32 -0600 |
| commit | 73324a15aa524cf75deebc4172f5a1f0d0051bc6 (patch) | |
| tree | 85c49f695b3cc5e2b3bbce63e9408ca3ff9b3cf3 /libpanto/src | |
| parent | 1b5917e9eb309b4b78e8d2b88b66e7f7bc1834ef (diff) | |
auth: CLI auth manager + `panto auth` subcommands
Add src/auth_manager.zig (turn-time resolution: load→login→refresh→exchange→
build credential, patch live config) and `panto auth status|login|logout`
subcommands with a line-based device-code presenter. Add config_file.loadFromString.
Diffstat (limited to 'libpanto/src')
| -rw-r--r-- | libpanto/src/public.zig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libpanto/src/public.zig b/libpanto/src/public.zig index 2c15f1e..ec8534a 100644 --- a/libpanto/src/public.zig +++ b/libpanto/src/public.zig @@ -55,6 +55,10 @@ pub fn deinit() void { config_mod.deinitHttp(); } +/// Borrow the process-global HTTP client (asserts `init` has run). Embedders +/// driving the OAuth auth flows need this to pass to `oauthLogin` etc. +pub const httpClient = config_mod.httpClient; + // =========================================================================== // Config (data, aliased) // =========================================================================== |
