angular-oauth2 icon indicating copy to clipboard operation
angular-oauth2 copied to clipboard

Don't remove the token when an `invalid_request` occurs

Open ruipenso opened this issue 10 years ago • 2 comments

The invalid_request is only sent due to missing or invalid parameters which are programmatic errors and should not be checked in runtime.

https://github.com/seegno/angular-oauth2/blob/master/src/interceptors/oauth-interceptor.js#L20

ruipenso avatar Jun 03 '15 18:06 ruipenso

I also faced this issue. I think it's not useful to remove the token indeed.

Gp2mv3 avatar Aug 15 '15 16:08 Gp2mv3

@Gp2mv3 Cool. Is good to know other developers shares the same opinion.

ruipenso avatar Aug 18 '15 09:08 ruipenso