https://github.com/loopystudios/bevy_key_rotation
A plugin to rotate an Access Token and Refresh Token.
https://github.com/loopystudios/bevy_key_rotation
bevy
Last synced: 10 months ago
JSON representation
A plugin to rotate an Access Token and Refresh Token.
- Host: GitHub
- URL: https://github.com/loopystudios/bevy_key_rotation
- Owner: loopystudios
- License: apache-2.0
- Created: 2023-10-19T23:45:23.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-10T17:48:04.000Z (over 1 year ago)
- Last Synced: 2025-04-16T15:14:05.003Z (about 1 year ago)
- Topics: bevy
- Language: Rust
- Homepage:
- Size: 45.9 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# Bevy Key Rotation

[](https://crates.io/crates/bevy_key_rotation)
[](https://docs.rs/bevy_key_rotation)
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](examples/) for reference.
You can also run examples on web:
```shell
# 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](https://discord.gg/KSfKceUKde). The discord is open to the public.
Contributions are welcome by pull request. The [Rust code of conduct](https://www.rust-lang.org/policies/code-of-conduct) applies.
## License
Licensed under either of
- Apache License, Version 2.0
([LICENSE-APACHE](LICENSE-APACHE) or )
- MIT license
([LICENSE-MIT](LICENSE-MIT) or )
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.