rrrodzilla / rusty_paseto

A type-driven, ergonomic RUST implementation of the PASETO protocol for secure stateless tokens.
https://crates.io/crates/rusty_paseto
MIT License
68 stars 8 forks source link

Implement Paseto Token Builder #2

Closed rrrodzilla closed 2 years ago

rrrodzilla commented 2 years ago

The generic builder handles building and enforcing paseto structure (claims, etc) but does not enforce paseto logic such as providing a default expiration claim and issue claim while allowing for overrides and non-expiring tokens. The Paseto Token Builder should wrap the generic builder with the custom paseto logic.