Function create_auth_config

Source
pub fn create_auth_config() -> AuthConfig
Expand description

Constructs the authentication configuration from environment variables.

  • Loads the JWT secret and token expiry hours from environment variables.
  • Panics if JWT_SECRET is not set or if TOKEN_EXPIRY_HOURS is invalid.

ยงReturns

Returns an AuthConfig struct with the loaded values.