You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
nil check in refreshHandler + refreshHandler code refactoring (#165)
1) added a nil check in refreshHandler to prevent panic when token is nil, this is when there is no JWT in cookie
2) refactored code to new RefreshToken func, for ppl who like to refresh everytime in Authorization or every request
3) refactored code to new CheckIfTokenExpire func, for ppl who like to only check if token is expired in Authorization, mainly for SPA use, one way to refresh is to only refresh on application load
0 commit comments