1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

How to bypass token interceptor for specific API call in angular-auth-oidc-client?

Discussão em 'Angular' iniciado por Manish Patidar, Outubro 7, 2024 às 08:02.

  1. I'm using the angular-auth-oidc-client library for handling authentication in my Angular application. The library automatically attaches a token to the headers of all outgoing HTTP requests using an interceptor.

    However, I have a specific API call where I don't want to pass the token in the header. I need to bypass the interceptor for this particular request, but it seems that the interceptor is always adding the token.

    I looked into the library documentation but didn't find a clear solution for excluding specific requests from token attachment.

    https://www.npmjs.com/package/angular-auth-oidc-client

    Continue reading...

Compartilhe esta Página