pub async fn validate_preview_token(
conn: &mut PgConnection,
token: &str,
) -> ModelResult<PreviewClaim>Expand description
Looks up an unexpired token. Errors with PreconditionFailed for an unknown or expired one.
pub async fn validate_preview_token(
conn: &mut PgConnection,
token: &str,
) -> ModelResult<PreviewClaim>Looks up an unexpired token. Errors with PreconditionFailed for an unknown or expired one.