nc-user-terminator 0.1.2__py3-none-any.whl → 0.1.3__py3-none-any.whl

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.

Potentially problematic release.


This version of nc-user-terminator might be problematic. Click here for more details.

nc_user_manager/client.py CHANGED
@@ -113,7 +113,10 @@ class OAuthClient:
113
113
  # ----------------------
114
114
  def google_one_tap(self, credential: str) -> CallbackResponse:
115
115
  """同步 Google One Tap 登录"""
116
- params = {"credential": credential}
116
+ params = {
117
+ "credential": credential,
118
+ "single_session": str(self._single_session).lower()
119
+ }
117
120
  if self._redirect_url:
118
121
  params["redirect_url"] = self._redirect_url
119
122
  res_dict = request(
@@ -126,7 +129,10 @@ class OAuthClient:
126
129
 
127
130
  async def google_one_tap_async(self, credential: str) -> CallbackResponse:
128
131
  """异步 Google One Tap 登录"""
129
- params = {"credential": credential}
132
+ params = {
133
+ "credential": credential,
134
+ "single_session": str(self._single_session).lower()
135
+ }
130
136
  if self._redirect_url:
131
137
  params["redirect_url"] = self._redirect_url
132
138
  res_dict = await self._arequest(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nc-user-terminator
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Summary: OAuth client wrapper for multi-tenant projects
5
5
  Author: bw_song
6
6
  Author-email: m132777096902@gmail.com
@@ -1,9 +1,9 @@
1
1
  nc_user_manager/__init__.py,sha256=fF3FZD0XUW5YCfTbBeJs3RK-Mnm3IQ7lns6Eb_tMqPU,238
2
- nc_user_manager/client.py,sha256=urNJFx2ssQc5KxmW6SshXfdAJw_Hq4Sm2x208oV20kM,7074
2
+ nc_user_manager/client.py,sha256=rGHrFv8ULTp_UXxg8BF-NAmbov9YUgzytJs6Nut7KrE,7254
3
3
  nc_user_manager/exceptions.py,sha256=yUMDrh1HHZF36UUadQNHvJlDgEYSYoYOObs8Q11fjrE,351
4
4
  nc_user_manager/models.py,sha256=mDK7zskIcaThxvUUTWVf6eMasw7YaA3hDGVVSd1ZJgo,1088
5
5
  nc_user_manager/utils.py,sha256=0QmJ9s3mzuYQSlwkcS8BW5XCe23lcoKskEeuqfdZHck,1245
6
- nc_user_terminator-0.1.2.dist-info/METADATA,sha256=iXTOp_tLVmJPR7LZug3BUkcZzixcdn2_gQgy13Bxfrc,327
7
- nc_user_terminator-0.1.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
8
- nc_user_terminator-0.1.2.dist-info/top_level.txt,sha256=kOAUtl6RYo-x3vMJL8It3KCJLoIFPvMUiAAyXjPQTYA,16
9
- nc_user_terminator-0.1.2.dist-info/RECORD,,
6
+ nc_user_terminator-0.1.3.dist-info/METADATA,sha256=YsxkK7xUovwQCna9nCZyjT5gkYJdVabM01ZmJag9t2g,327
7
+ nc_user_terminator-0.1.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
8
+ nc_user_terminator-0.1.3.dist-info/top_level.txt,sha256=kOAUtl6RYo-x3vMJL8It3KCJLoIFPvMUiAAyXjPQTYA,16
9
+ nc_user_terminator-0.1.3.dist-info/RECORD,,