Service passphrase (#16)
Reviewed-on: #16 Co-authored-by: phoenix <kundeng00@pm.me> Co-committed-by: phoenix <kundeng00@pm.me>
This commit is contained in:
@@ -8,6 +8,11 @@ pub async fn get_secret_main_key() -> String {
|
||||
std::env::var(crate::keys::SECRET_MAIN_KEY).expect(crate::keys::error::SECRET_MAIN_KEY)
|
||||
}
|
||||
|
||||
pub async fn get_service_passphrase() -> String {
|
||||
dotenvy::dotenv().ok();
|
||||
std::env::var(crate::keys::SERVICE_PASSPHRASE).expect(crate::keys::error::SERVICE_LOGIN)
|
||||
}
|
||||
|
||||
pub async fn get_secret_key() -> String {
|
||||
dotenvy::dotenv().ok();
|
||||
std::env::var(crate::keys::SECRET_KEY).expect(crate::keys::error::SECRET_KEY)
|
||||
|
||||
Reference in New Issue
Block a user