From 6f6cf9cce073e8fc37b527a1134b7849f3d60d71 Mon Sep 17 00:00:00 2001 From: Zach Leventer Date: Thu, 23 Apr 2026 21:24:01 -0400 Subject: [PATCH] Add id_token and token_type fields to AccessToken3LResponse When using the OpenID Connect scope, LinkedIn's OAuth token endpoint returns id_token (JWT with identity claims) and token_type (e.g. "Bearer") fields that were missing from the type definition. Fixes #32 Co-Authored-By: Claude Opus 4.6 (1M context) --- lib/auth.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/auth.ts b/lib/auth.ts index 77de760..fde5588 100644 --- a/lib/auth.ts +++ b/lib/auth.ts @@ -32,6 +32,10 @@ export interface AccessToken3LResponse { refresh_token_expires_in?: number; /** A comma-separated list of scopes authorized by the member (e.g. "r_liteprofile,r_ads") */ scope: string; + /** The type of token issued (e.g. "Bearer"). Returned when using OpenID Connect scopes. */ + token_type?: string; + /** A JSON Web Token (JWT) that contains user identity claims. Returned when using the "openid" scope. */ + id_token?: string; } enum TokenAuthType {