Closed zahid-arbisoft closed 2 years ago
The intent behind this message is to indicate that the default signing algorithm HS256 requires that a shared secret be set to create tokens or verify signatures.
This document describes how to configure a Settings
model that is used to set the config attributes used by fastapi_jwt_auth
module, including authjwt_secret_key
.
It might look something like this:
class Settings(BaseModel):
authjwt_algorithm: str = "HS256"
authjwt_secret_key: str = "my-dev-secret"
What does this error mean?
authjwt_secret_key
must be set when using symmetric algorithm HS256