super-voice-shared/src/daemon/session.rs
Line | Count | Source |
1 | | // SPDX-License-Identifier: GPL-3.0-only |
2 | | //! Session tokens, kept in a file per app: |
3 | | //! [`super_engine_client::session`], with the product bound to Super STT. |
4 | | |
5 | | use crate::SUPER_VOICE; |
6 | | pub use super_engine_client::session::{AppId, forget, load, obtain, save, with_token}; |
7 | | |
8 | | /// The [`AppId`] Super STT's app `name` keeps its token under, e.g. |
9 | | /// `app_id("super-voice-app")`. |
10 | | #[must_use] |
11 | 0 | pub const fn app_id(name: &'static str) -> AppId { |
12 | 0 | AppId::new(&SUPER_VOICE, name) |
13 | 0 | } |