MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / normalize_pairing_code

Function normalize_pairing_code

packages/server/src/auth.rs:55–57  ·  view source on GitHub ↗
(value: &str)

Source from the content-addressed store, hash-verified

53}
54
55fn normalize_pairing_code(value: &str) -> String {
56 value.chars().filter(|ch| ch.is_ascii_digit()).collect()
57}
58
59pub fn access_cookie_value(token: &str) -> String {
60 format!("{ACCESS_TOKEN_COOKIE}={token}; Path=/; HttpOnly; SameSite=Strict")

Callers 1

pairing_code_matchesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected