sa-token-core 0.1.18

Core library for sa-token-rust, a powerful authentication and authorization framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Author: 金书记
//
//! Token → login_id 映射标记(对齐 Java NotLoginException)

/// 被踢下线标记
pub const TOKEN_MAP_KICK_OUT: &str = "-5";

/// 被顶下线标记
pub const TOKEN_MAP_BE_REPLACED: &str = "-4";

pub fn is_kick_out_marker(value: &str) -> bool {
    value == TOKEN_MAP_KICK_OUT
}

pub fn is_replaced_marker(value: &str) -> bool {
    value == TOKEN_MAP_BE_REPLACED
}