From 7d14a53dfdaa3321d04694a9ed97fb284dfbc6b4 Mon Sep 17 00:00:00 2001 From: Konstantinos Feretos Date: Wed, 11 Oct 2023 12:56:39 +0300 Subject: [PATCH] feat(grpc-sdk): authentication.validateAccessToken() --- libraries/grpc-sdk/src/modules/authentication/index.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libraries/grpc-sdk/src/modules/authentication/index.ts b/libraries/grpc-sdk/src/modules/authentication/index.ts index e1d7f9269..17fc8b39f 100644 --- a/libraries/grpc-sdk/src/modules/authentication/index.ts +++ b/libraries/grpc-sdk/src/modules/authentication/index.ts @@ -6,6 +6,7 @@ import { UserDeleteResponse, UserLoginResponse, Team, + ValidateAccessTokenResponse, } from '../../protoUtils'; export class Authentication extends ConduitModule { @@ -45,4 +46,11 @@ export class Authentication extends ConduitModule { return this.client!.teamDelete({ teamId }); } + + validateAccessToken( + accessToken: string, + path?: string, + ): Promise { + return this.client!.validateAccessToken({ accessToken, path }); + } }