junobuild-satellite 0.6.0

Core implementation of a Juno Satellite.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::automation::authenticate::openid_authenticate_automation;
use crate::automation::types::{AuthenticateAutomationArgs, AuthenticateAutomationResult};
use junobuild_shared::ic::UnwrapOrTrap;

pub async fn authenticate_automation(
    args: AuthenticateAutomationArgs,
) -> AuthenticateAutomationResult {
    match args {
        AuthenticateAutomationArgs::OpenId(args) => {
            openid_authenticate_automation(&args).await.unwrap_or_trap()
        }
    }
}