Closed nimatrazmjo closed 6 years ago
Hi @nimatullah, basically library relies on correct backend response.
For example, once token got expired backend throws you 401 status and some specific error code that you can handle in refreshShouldHappen
method of AuthService
, also in this method you can analyse that request and make a decision whether token should be refreshed or not.
Ok, I will use the library, and if I stuck on something then I will ask :)
Ok :)
@serhiisol, my angular version is 4.4.4
, should I use ngx-auth@2.2.0
or the latest one?
check please README.md
What if
JWT
token expired, what will happen?