Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NbAuthJWTInterceptor Issue #1871

Closed
ghost opened this issue Oct 7, 2018 · 1 comment
Closed

NbAuthJWTInterceptor Issue #1871

ghost opened this issue Oct 7, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Oct 7, 2018

NbAuthJWTInterceptor is configured properly. It was working properly. I just updated the auth, security packages to 2.0.1

Suddenly it stopped working.

  • app.modules.ts entry for interceptor
    {provide: HTTP_INTERCEPTORS, useClass: NbAuthJWTInterceptor, multi: true},

Token that it is sending now is something like this, where "api" is the username.

WWW-Authenticate: Bearer realm="api"

Authentication is happening properly without issue and token is here in localstorage as well. But the "Bearer Token" is not getting send with the request rather the above.

Thanks & Regards

@kharratahmed
Copy link

kharratahmed commented Oct 8, 2018

add this line in your module (Quick fix)
{ provide: NB_AUTH_TOKEN_INTERCEPTOR_FILTER, useValue: (req) => {return false;}},
and plz take a look here for more details its a new future ;) (the last line in "2.0.0 (2018-10-02)")
https://github.com/akveo/nebular/blob/master/CHANGELOG.md

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant