Skip to content

Commit

Permalink
feat(grpc-sdk): authentication.validateAccessToken()
Browse files Browse the repository at this point in the history
  • Loading branch information
kon14 authored and kkopanidis committed Oct 11, 2023
1 parent 867fa0e commit 7d14a53
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions libraries/grpc-sdk/src/modules/authentication/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
UserDeleteResponse,
UserLoginResponse,
Team,
ValidateAccessTokenResponse,
} from '../../protoUtils';

export class Authentication extends ConduitModule<typeof AuthenticationDefinition> {
Expand Down Expand Up @@ -45,4 +46,11 @@ export class Authentication extends ConduitModule<typeof AuthenticationDefinitio
teamDelete(teamId: string): Promise<TeamDeleteResponse> {
return this.client!.teamDelete({ teamId });
}

validateAccessToken(
accessToken: string,
path?: string,
): Promise<ValidateAccessTokenResponse> {
return this.client!.validateAccessToken({ accessToken, path });
}
}

0 comments on commit 7d14a53

Please sign in to comment.