surrealpatch/core/src/iam/base.rs
Tobie Morgan Hitchcock b03aeca08c
Cleanup a few things in the code (#3793)
Co-authored-by: Rushmore Mushambi <rushmore@surrealdb.com>
2024-04-03 09:54:12 +00:00

12 lines
443 B
Rust

use base64::alphabet::STANDARD;
use base64::engine::general_purpose::GeneralPurpose;
use base64::engine::general_purpose::GeneralPurposeConfig;
use base64::engine::DecodePaddingMode;
pub use base64::Engine;
pub const BASE64: GeneralPurpose = GeneralPurpose::new(&STANDARD, CONFIG);
pub const CONFIG: GeneralPurposeConfig = GeneralPurposeConfig::new()
.with_encode_padding(false)
.with_decode_padding_mode(DecodePaddingMode::Indifferent);