Skip to content

Commit

Permalink
style: minor
Browse files Browse the repository at this point in the history
  • Loading branch information
nannan00 committed Dec 10, 2024
1 parent 00c668f commit e3af58c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bk-login/bklogin/common/middlewares.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def __call__(self, request):
return self.get_response(request)

@staticmethod
def _get_public_key():
def _get_public_key() -> str:
"""
获取 APIGW 的 Public Key
由于配置文件里的 public key 是来自环境变量,且使用 base64 编码,因此需要解码
Expand Down Expand Up @@ -169,5 +169,5 @@ def _decode_jwt(self, jwt_token: str) -> Dict[str, Any] | None:

return None

def _make_app(self, bk_app_code=None, verified=False):
def _make_app(self, bk_app_code: str | None = None, verified: bool = False):
return self.App(bk_app_code=bk_app_code, verified=verified)

0 comments on commit e3af58c

Please sign in to comment.