bevy_key_rotation

Crates.iobevy_key_rotation
lib.rsbevy_key_rotation
version0.5.1
created_at2024-03-28 04:21:44.705298+00
updated_at2025-04-29 17:39:36.569944+00
descriptionAccess and refresh token rotation for Bevy applications
homepage
repositoryhttps://github.com/loopystudios/bevy_key_rotation
max_upload_size
id1188733
size125,515
Spencer C. Imbleau (simbleau)

documentation

README

Bevy Key Rotation

MIT/Apache 2.0 crates.io docs.rs

A minimum crate for non-blocking, continuous use of an access token, by ensuring it is constantly rotated ahead-of-time via refresh token. When a refresh token needs to be rotated, it is rotated with username/password credentials.

There is full API support for wasm and native. Android and iOS are untested (Help needed).

Bevy version support

bevy bevy_key_rotation
0.16 0.5, main
0.15 0.3-0.4
0.14 0.2
0.13 0.1
< 0.13 Unsupported

Usage

There are several examples for reference.

You can also run examples on web:

# Make sure the Rust toolchain supports the wasm32 target
rustup target add wasm32-unknown-unknown

cargo run_wasm --example simple

Community

All Loopy projects and development happens in the Loopy Discord. The discord is open to the public.

Contributions are welcome by pull request. The Rust code of conduct applies.

License

Licensed under either of

at your option

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Commit count: 67

cargo fmt