getSession fails with 401, but can't sign out?
I've got a hook which gets the user session, and then calls a db function to get their profile info like so
The problem I have here is that
What I am then doing is trying to sign the user out so they are forced to sign back in, however I can't call the
The above is in my
The problem I have here is that
getSession is failing due to a 401, and erroring with {message: 'JWT expired'}What I am then doing is trying to sign the user out so they are forced to sign back in, however I can't call the
signOut method because it fails with a 401 due to the JWT being expired?The above is in my
ProfileFetcher component though, which is loaded after I do some auth logic in my WithAuth component