MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / pair

Function pair

crates/openshell-server/src/auth/sandbox_jwt.rs:259–261  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

257 }
258
259 fn pair() -> (SandboxJwtIssuer, SandboxJwtAuthenticator) {
260 pair_with_ttl(Duration::from_secs(3600))
261 }
262
263 fn pair_with_ttl(ttl: Duration) -> (SandboxJwtIssuer, SandboxJwtAuthenticator) {
264 let mat = generate_jwt_key().expect("jwt key");

Calls 1

pair_with_ttlFunction · 0.85

Tested by

no test coverage detected