Skip to main contentCrate session_keys_macros_attribute
Source - session_auth_or
- Macro to check if the session (V1 or V2) or the original authority is the signer.
Works with both
Session and SessionV2 traits.
- Session
- Derive macro for the
Session trait (V1) or SessionV2 trait.
Auto-detects based on the field type: - SessionV2
- Explicit V2 derive macro — same implementation as
#[derive(Session)],
provided for clarity when using SessionTokenV2.