Skip to content

Commit

Permalink
small fix to static jwt model
Browse files Browse the repository at this point in the history
  • Loading branch information
alsugiliazova committed Dec 4, 2024
1 parent 049774d commit 7e210f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jwt_authentication/tests/static_key/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def add_to_config(self, restart=True, node=None):
algorithm=self.algorithm,
secret=self.secret,
static_key_in_base64=self.config_static_key_in_base64,
public_key=self.key.public_key,
public_key=self.key.public_key if self.key else None,
restart=restart,
node=node,
)
Expand Down Expand Up @@ -83,7 +83,7 @@ def create_token(self):
secret=self.secret,
algorithm=self.algorithm,
expiration_minutes=self.expiration_minutes,
private_key_path=self.key.private_key_path,
private_key_path=self.key.private_key_path if self.key else None,
)
self.jwt_token = token
return self
Expand Down

0 comments on commit 7e210f6

Please sign in to comment.