From 7c22788be4940271069352494bef6cc0174a52ee Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Tue, 30 Jan 2024 16:10:17 -0300 Subject: [PATCH] Update client.ts --- src/client.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/client.ts b/src/client.ts index 80a42ea..1d576b6 100644 --- a/src/client.ts +++ b/src/client.ts @@ -4,7 +4,6 @@ import { HttpCookieMap, HttpHeaders } from "@tribufu/mintaka"; import { OAuth2GrantType, OAuth2IntrospectionRequest, OAuth2IntrospectionResponse, OAuth2TokenRequest, OAuth2TokenResponse } from "@tribufu/mintaka"; import { TribufuApi } from "./api"; -import { User } from "./models/user"; /** * **Tribufu Client** @@ -337,7 +336,7 @@ export class TribufuClient extends TribufuApi { * Get information about the current client. * @returns Client | null */ - public async getClientInfo(): Promise { + public async getClientInfo(): Promise { return this.getClientById(this.clientId); } @@ -345,13 +344,13 @@ export class TribufuClient extends TribufuApi { * Get information about the current user. * @returns User | null */ - public async getUserInfo(): Promise { + public async getUserInfo(): Promise { if (!this.options.accessToken) { return null; } const headers = this.getHeaders(); - const responseBody = await this.http.get(`/v1/oauth2/userinfo`, headers); + const responseBody = await this.http.get(`/v1/oauth2/userinfo`, headers); if (!responseBody) { return null;