Skip to content

AccessToken3LResponse missing token_type and id_token fields #43

@ZLeventer

Description

@ZLeventer

Description

The AccessToken3LResponse TypeScript interface does not include token_type or id_token fields. When using the openid scope (as recommended by LinkedIn's OAuth 2.0 docs), the token exchange response includes both fields, but they are not typed in the SDK.

Impact

  • token_type is part of the OAuth 2.0 spec (RFC 6749) and is always returned — omitting it means users must cast to any or augment the type
  • id_token is returned when openid scope is requested — this is LinkedIn's recommended auth flow, so most users will encounter this gap

Suggested fix

Add token_type: string and id_token?: string to AccessToken3LResponse. See PR #41.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions