pub trait ReplayStore {
// Required method
fn insert_once<'life0, 'life1, 'async_trait>(
&'life0 mut self,
jti_hash: [u8; 32],
ctx: ReplayContext<'life1>,
) -> Pin<Box<dyn Future<Output = Result<bool, DpopError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Implement this in your app for DB/Redis/etc. Return Ok(true) if this jti was inserted the first time; Ok(false) if already present (replay).