Angular-auth-oidc-client: Exported members have mimified names

Created on 27 Feb 2019  路  4Comments  路  Source: damienbod/angular-auth-oidc-client

I'm trying to use the TokenHelperService to decode the access token (keycloak only show roles in access tokens) but it's exported as export { TokenHelperService as 傻e } from './src/services/oidc-token-helper.service';
Would you mind adding it to the public_api or exported in a usable way?

Thanks

enhancement

Most helpful comment

@damienbod you sir, are awesome :) thank you very much for the great lib

All 4 comments

Hi @yelhouti

TokenHelperService is a internal service. I could add this to the public api, if it is required. Why do you require this?

Her are are the public APIs:

https://github.com/damienbod/angular-auth-oidc-client/blob/master/src/services/oidc.security.service.ts#L205

https://github.com/damienbod/angular-auth-oidc-client/blob/master/src/services/oidc.security.service.ts#L214

Greetings Damien

I tried to explain it in the request, I need to something like:

getPayloadFromIdToken(encode = false): any {
        const token = this.getIdToken();
        return this.tokenHelperService.getPayloadFromToken(token, encode);
    }

More precisely, I need getUserData equivalent using accessToken

Release version 9.0.3

@damienbod you sir, are awesome :) thank you very much for the great lib

Was this page helpful?
0 / 5 - 0 ratings