xn-auth 0.2.40__tar.gz → 0.2.41.dev1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xn-auth
3
- Version: 0.2.40
3
+ Version: 0.2.41.dev1
4
4
  Summary: Auth adapter for XN-Api framework
5
5
  Author-email: Artemiev <mixartemev@gmail.com>
6
6
  License: MIT
@@ -57,8 +57,8 @@ class Auth:
57
57
  async def tma(tid: str) -> Response[WebAppUser]:
58
58
  try:
59
59
  twaid: WebAppInitData = safe_parse_webapp_init_data(self.jwt.token_secret, tid)
60
- except ValueError:
61
- raise NotAuthorizedException(detail="Tg Initdata invalid")
60
+ except ValueError as e:
61
+ raise NotAuthorizedException(detail=f"Tg Initdata invalid {e}")
62
62
  return await user_proc(twaid.user)
63
63
 
64
64
  self.tma_handler = tma
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xn-auth
3
- Version: 0.2.40
3
+ Version: 0.2.41.dev1
4
4
  Summary: Auth adapter for XN-Api framework
5
5
  Author-email: Artemiev <mixartemev@gmail.com>
6
6
  License: MIT
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes