@@ -125,7 +125,7 @@ def get_matched_permissions(
125125 jwt_response (dict): The jwt_response object which includes all JWT claims information
126126 permissions (List[str]): List of permissions to validate for this jwt_response
127127
128- Return value (List [str]): returns the list of permissions that are granted
128+ Return value (list [str]): returns the list of permissions that are granted
129129 """
130130 return self .get_matched_tenant_permissions (jwt_response , "" , permissions )
131131
@@ -177,7 +177,7 @@ def get_matched_tenant_permissions(
177177 tenant (str): TenantId
178178 permissions (List[str]): List of permissions to validate for this jwt_response
179179
180- Return value (List [str]): returns the list of permissions that are granted
180+ Return value (list [str]): returns the list of permissions that are granted
181181 """
182182 if not jwt_response :
183183 return []
@@ -224,7 +224,7 @@ def get_matched_roles(self, jwt_response: dict, roles: list[str]) -> list[str]:
224224 jwt_response (dict): The jwt_response object which includes all JWT claims information
225225 roles (List[str]): List of roles to validate for this jwt_response
226226
227- Return value (List [str]): returns the list of roles that are granted
227+ Return value (list [str]): returns the list of roles that are granted
228228 """
229229 return self .get_matched_tenant_roles (jwt_response , "" , roles )
230230
@@ -274,7 +274,7 @@ def get_matched_tenant_roles(
274274 tenant (str): TenantId
275275 roles (List[str]): List of roles to validate for this jwt_response
276276
277- Return value (List [str]): returns the list of roles that are granted
277+ Return value (list [str]): returns the list of roles that are granted
278278 """
279279 if not jwt_response :
280280 return []
@@ -312,7 +312,7 @@ def validate_session(
312312 session_token (str): The session token to be validated
313313 audience (str|Iterable[str]|None): Optional recipients that the JWT is intended for (must be equal to the 'aud' claim on the provided token)
314314
315- Return value (dict):
315+ Return value (Union[ dict, Awaitable[dict]] ):
316316 Return dict includes the session token and all JWT claims
317317
318318 Raise:
@@ -330,7 +330,7 @@ def refresh_session(
330330 refresh_token (str): The refresh token that will be used to refresh the session
331331 audience (str|Iterable[str]|None): Optional recipients that the JWT is intended for (must be equal to the 'aud' claim on the provided token)
332332
333- Return value (dict):
333+ Return value (Union[ dict, Awaitable[dict]] ):
334334 Return dict includes the session token, refresh token, and all JWT claims
335335
336336 Raise:
@@ -355,7 +355,7 @@ def validate_and_refresh_session(
355355 refresh_token (str): The refresh token that will be used to refresh the session token, if needed
356356 audience (str|Iterable[str]|None): Optional recipients that the JWT is intended for (must be equal to the 'aud' claim on the provided token)
357357
358- Return value (dict):
358+ Return value (Union[ dict, Awaitable[dict]] ):
359359 Return dict includes the session token, refresh token, and all JWT claims
360360
361361 Raise:
@@ -375,7 +375,7 @@ def logout(
375375 Args:
376376 refresh_token (str): The refresh token
377377
378- Return value (httpx.Response): returns the response from the Descope server
378+ Return value (Union[ httpx.Response, Awaitable[httpx.Response]] ): returns the response from the Descope server
379379
380380 Raise:
381381 AuthException: Exception is raised if session is not authorized or another error occurs
@@ -401,7 +401,7 @@ def logout_all(
401401 Args:
402402 refresh_token (str): The refresh token
403403
404- Return value (httpx.Response): returns the response from the Descope server
404+ Return value (Union[ httpx.Response, Awaitable[httpx.Response]] ): returns the response from the Descope server
405405
406406 Raise:
407407 AuthException: Exception is raised if session is not authorized or another error occurs
@@ -425,7 +425,7 @@ def me(self, refresh_token: str) -> Union[dict, Awaitable[dict]]:
425425 Args:
426426 refresh_token (str): The refresh token
427427
428- Return value (dict): returns the user details from the server
428+ Return value (Union[ dict, Awaitable[dict]] ): returns the user details from the server
429429 (email:str, name:str, phone:str, loginIds[str], verifiedEmail:bool, verifiedPhone:bool)
430430
431431 Raise:
@@ -458,7 +458,7 @@ def my_tenants(
458458 ids (List[str]): Get the list of tenants
459459 refresh_token (str): The refresh token
460460
461- Return value (dict): returns the tenant requested from the server
461+ Return value (Union[ dict, Awaitable[dict]] ): returns the tenant requested from the server
462462 (id:str, name:str, customAttributes:dict)
463463
464464 Raise:
@@ -498,7 +498,7 @@ def history(self, refresh_token: str) -> Union[list[dict], Awaitable[list[dict]]
498498 Args:
499499 refresh_token (str): The refresh token
500500
501- Return value (List[ dict]):
501+ Return value (Union[list[ dict], Awaitable[list[dict]] ]):
502502 Return List in the format
503503 [
504504 {
@@ -564,7 +564,7 @@ def select_tenant(
564564 refresh_token (str): The refresh token that will be used to refresh the session token, if needed
565565 tenant_id (str): The tenant id to place on JWT
566566
567- Return value (dict):
567+ Return value (Union[ dict, Awaitable[dict]] ):
568568 Return dict includes the session token, refresh token, with the tenant id on the jwt
569569
570570 Raise:
0 commit comments