Skip to content

Commit 3f7653b

Browse files
authored
Fetch oauth client before introspecting token (#4)
1 parent aae46f2 commit 3f7653b

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/tower.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,7 @@ export class JetTower {
147147
async introspectToken(
148148
accessToken: string,
149149
): Promise<TokenIntrospection> {
150-
if (!this.oauthClient) {
151-
throw new Error("No OAuth client found");
152-
}
153-
154-
const { clientId, clientSecret } = this.oauthClient;
150+
const { clientId, clientSecret } = await this.getOauthClient();
155151

156152
const url = await this.getOAuthApiEndpoint("/introspect");
157153

0 commit comments

Comments
 (0)