xn-auth 0.2.43__tar.gz → 0.2.44__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.43
3
+ Version: 0.2.44
4
4
  Summary: Auth adapter for XN-Api framework
5
5
  Author-email: Artemiev <mixartemev@gmail.com>
6
6
  License: MIT
@@ -41,7 +41,9 @@ class Auth:
41
41
  res = self.jwt.login(
42
42
  identifier=str(db_user.id),
43
43
  token_extras={"role": db_user.role, "blocked": db_user.blocked},
44
- response_body=XyncUser.model_validate({**user.model_dump(), "pub": b64encode(db_user.pub)}),
44
+ response_body=XyncUser.model_validate(
45
+ {**user.model_dump(), "pub": db_user.pub and b64encode(db_user.pub)}
46
+ ),
45
47
  )
46
48
  res.cookies[0].httponly = False
47
49
  return res
@@ -63,4 +63,4 @@ class TgUser(Xs):
63
63
 
64
64
 
65
65
  class XyncUser(WebAppUser):
66
- pub: bytes
66
+ pub: bytes | None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xn-auth
3
- Version: 0.2.43
3
+ Version: 0.2.44
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
File without changes