AuthApiError Internal server error

So I updated supabase-js from version 1.35.7 to 2.0.4 and after trying to get user data by
getUser()
I receive error message with value of "AuthApiError Internal server error". I looked up to auth logs in supabase dashboard and found this error log:
{"component":"api","error":"invalid claim: subject missing","level":"error","method":"GET","msg":"Unhandled server error: invalid claim: subject missing","path":"/user","referer":"http://localhost:3000/","remote_addr":"MY_IP","time":"2022-10-24T14:52:21Z","timestamp":"2022-10-24T14:52:21Z"}
.
Anybody have an idea how to fix it?
Was this page helpful?