If user is logged in, check jetpack API to see if they have nix cache available. If available use it.
Adds new provider framework for logged-in/logged-out functionality.
Note: There's a minor issue we need to fix with the access token. It's missing the audience which is needed by the API. Will fix in https://github.com/jetpack-io/opensource
How was it tested?
Copied over access token with correct audience
Added myself as a trusted user
devbox add hello on org that has nix cache. Observed it attempted to use the cache.
Summary
Note: There's a minor issue we need to fix with the access token. It's missing the audience which is needed by the API. Will fix in https://github.com/jetpack-io/opensource
How was it tested?
devbox add hello
on org that has nix cache. Observed it attempted to use the cache.