15 lines
321 B
Rust
15 lines
321 B
Rust
use const_format::concatcp;
|
|
|
|
const BASE: &str = "mentorenwahl_";
|
|
|
|
pub const TOKEN: &str = concatcp!(BASE, "token");
|
|
pub const ADMIN: &str = concatcp!(BASE, "admin");
|
|
|
|
pub const DELETE_ON_LOGOUT: [&str; 2] = [TOKEN, ADMIN];
|
|
|
|
pub fn logout_clear() {
|
|
for x in DELETE_ON_LOGOUT {
|
|
wasm_cookies::delete(x);
|
|
}
|
|
}
|