ZainRk / Full-stack-real-estate-youtube

https://full-stack-real-estate-youtube.vercel.app
70 stars 58 forks source link

invalidtokenerror: invalid compact jws #3

Open kartiksonar opened 1 year ago

kartiksonar commented 1 year ago

while booking visits this error is coming and might be errors in auth0 Check api file please

Manoj735 commented 1 year ago

while booking visits this error is coming and might be errors in auth0 Check api file please

i Have checked api file but still getting same issue.

ZainRk commented 1 year ago

Please try the application on the URL I shared :

https://full-stack-real-estate-youtube-sooty.vercel.app/

If you are getting error while booking visits OR adding new property then, The issue you are facing, happens when loginWithPopup method got blocked.

Actually, just follow these steps : 1- clear your cache OR try diff browser/account OR open in Incognito mode. 2- When you do login/signup, please note that your browser is blocking the authentication popup. You should allow that to receive valid jwt from server. 3- It's on the top, at the right side of URL bar. 4- Once you allow that refresh the page, do login and features will work fine.

Antra-Gupta commented 1 year ago

Still the same error. Its not working

AjGaht commented 1 year ago

same Error :: AxiosError {message: 'Request failed with status code 401', name: 'AxiosError', code: 'ERR_BAD_REQUEST', config: {…}, request: XMLHttpRequest, …} console :: transitional : {silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false} url : "/user/bookVisit/6460802e05fa5b3fd0527f65" validateStatus : ƒ validateStatus(status) xsrfCookieName : "XSRF-TOKEN" xsrfHeaderName : "X-XSRF-TOKEN" [[Prototype]] : Object message : "Request failed with status code 401" name : "AxiosError" request : XMLHttpRequest {onreadystatechange: null, readyState: 4, timeout: 0, withCredentials: false, upload: XMLHttpRequestUpload, …} response : {data: '<!DOCTYPE html>\n\n\n<meta char…earer\dist\index.js:403:24\n\n\n', status: 401, statusText: 'Unauthorized', headers: AxiosHeaders, config: {…}, …} stack : "AxiosError: Request failed with status code 401\n at settle (http://localhost:5173/node_modules/.vite/deps/axios.js?v=fcf0650f:1189:12)\n at XMLHttpRequest.onloadend