bpedroza/js-pkce

id token

tommed opened this issue · 4 comments

Some providers (including Azure AD) provide Access Tokens which aren't JWT and contain no information - this is perfectly acceptable as per the standard RFC. But I see no way using your library to acquire the ID token?

Can you provide a method for accessing the ID token? E.g., exchangeForIDToken?

Thanks,

Ah ok, the ID token is present, but missing from your TS interface:

export default interface ITokenResponse {
    access_token: string;
    expires_in: number;
    refresh_expires_in: number;
    refresh_token: string;
    scope: string;
    token_type: string;
}

The interface should not stop you from getting any data from the actual response. Are you requesting a change here? Or did you get it figured out?

Figured it out.. probably just an FYI as the Interface is incomplete?
Up to you.

Great. At this time I am not going to add provider specific response details to the interface.