#gamedev #rotation #bevy

bevy_key_rotation

Access and refresh token rotation for Bevy applications

7 releases (4 breaking)

Uses new Rust 2024

new 0.5.1 Apr 29, 2025
0.5.0 Apr 28, 2025
0.4.0 Mar 10, 2025
0.3.1 Dec 2, 2024
0.1.0 Mar 28, 2024

#635 in Game dev

Download history 10/week @ 2025-02-23 13/week @ 2025-03-02 114/week @ 2025-03-09 18/week @ 2025-03-16 17/week @ 2025-03-23 183/week @ 2025-04-27

183 downloads per month

Apache-2.0 OR MIT

34KB
267 lines

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.

Dependencies

~47–80MB
~1.5M SLoC