wonderful-australia-35701
06/06/2023, 6:51 AMquiet-area-427
06/06/2023, 7:13 AMJWTResponse
which is exportedwonderful-australia-35701
06/06/2023, 7:17 AMwonderful-australia-35701
06/06/2023, 7:18 AMwonderful-australia-35701
06/06/2023, 7:19 AMimport DescopeClient from '@descope/node-sdk';
type DescopeClientType = ReturnType<typeof DescopeClient>;
type AuthenticationInfo = Parameters<DescopeClientType['validatePermissions']>[0];
great-diamond-35515
06/06/2023, 7:25 AMJWTResponse
type from the @descope/core-js-sdk
2. infer the type of variables similar you described above,
we may export JWTResponse
, AuthenticationInfo
also from node sdk as well
can you elaborate what is the use case that you find it helpful?wonderful-australia-35701
06/06/2023, 7:42 AMdescope
in nestjs, and they recommend do use authorization in Module and Service so we can check specific objects and not only the path.wonderful-australia-35701
06/06/2023, 7:42 AMuser
in the request for that.great-diamond-35515
06/06/2023, 8:28 AMnext
version once the PR is merged
(an official release will be avaialble later on 🙂 )wonderful-australia-35701
06/06/2023, 8:29 AM