MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / validate_token

Function validate_token

crates/client-api/src/auth.rs:392–397  ·  view source on GitHub ↗
(
    state: &S,
    token: &str,
)

Source from the content-addressed store, hash-verified

390}
391
392pub async fn validate_token<S: NodeDelegate>(
393 state: &S,
394 token: &str,
395) -> Result<SpacetimeIdentityClaims, TokenValidationError> {
396 state.jwt_auth_provider().validator().validate_token(token).await
397}
398
399pub struct SpacetimeAuthHeader {
400 auth: Option<SpacetimeAuth>,

Callers 2

from_request_partsMethod · 0.70
on_startupMethod · 0.50

Calls 3

validate_tokenMethod · 0.45
validatorMethod · 0.45
jwt_auth_providerMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…