Skip to main content

init_jwt_secret

Function init_jwt_secret 

Source
pub fn init_jwt_secret(secret: &str)
Expand description

Initialize the global JWT encoding secret from the configured secret. This is called automatically by .add_authentication() on the HostBuilder, but can also be called manually if needed.

Idempotent: subsequent calls are no-ops (the first secret wins).