Crate dynamic_token
source ·Structs§
- Authentication options Only the API key is mandatory. By default a uuid is not validated, the random split characters are
%.,and max age or tolerance is 5 minutes (or 300000 milliseconds) NB: The random split characters (rand_char_str) may not include alphanumeric characters or underscores, as these would break other validation
Enums§
Constants§
Functions§
- Validate the dynamic key based on a shared API key, random characters, a timestamp and optional userID
- Generate a time-sensitive dynamic key from a shared API key as defined in the options the current millisecond timestamp (encoded, split and injected) some random characters and an optional uuid that can be decoded and used for additional authentication