{"id":29441183,"url":"https://github.com/this-is-pawan/authentication-user-mern-","last_synced_at":"2026-05-15T12:35:02.607Z","repository":{"id":295982533,"uuid":"991900419","full_name":"This-is-pawan/authentication-user-MERN-","owner":"This-is-pawan","description":"FULL STACK MERN AUTHENTICATION PROECT ALL FEATURES ARE AVALIABLE like OTP by email  ,  resetpassword  by OTP  etc. ","archived":false,"fork":false,"pushed_at":"2025-06-07T09:21:34.000Z","size":306,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-13T13:45:13.587Z","etag":null,"topics":["contextapi","vite"],"latest_commit_sha":null,"homepage":"https://authentication-frontend-flax.vercel.app","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/This-is-pawan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-28T10:12:01.000Z","updated_at":"2025-06-08T05:13:20.000Z","dependencies_parsed_at":"2025-05-28T11:41:20.425Z","dependency_job_id":"60b0ed86-67be-4c27-9419-975e1dd3a326","html_url":"https://github.com/This-is-pawan/authentication-user-MERN-","commit_stats":null,"previous_names":["this-is-pawan/authentication-user-mern-"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/This-is-pawan/authentication-user-MERN-","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/This-is-pawan%2Fauthentication-user-MERN-","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/This-is-pawan%2Fauthentication-user-MERN-/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/This-is-pawan%2Fauthentication-user-MERN-/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/This-is-pawan%2Fauthentication-user-MERN-/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/This-is-pawan","download_url":"https://codeload.github.com/This-is-pawan/authentication-user-MERN-/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/This-is-pawan%2Fauthentication-user-MERN-/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33067461,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T11:35:32.926Z","status":"ssl_error","status_checked_at":"2026-05-15T11:35:31.362Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["contextapi","vite"],"created_at":"2025-07-13T13:41:39.246Z","updated_at":"2026-05-15T12:35:02.602Z","avatar_url":"https://github.com/This-is-pawan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"both are use\n```js\naxios.interceptors.response.use(\n  response =\u003e response,\n  error =\u003e {\n    if (error.response \u0026\u0026 error.response.status === 401) {\n      // Token is invalid or expired      \n      localStorage.removeItem('token');\n      toast.error('Session expired. Please log in again.');\n      window.location.href = '/login'; // or use navigate('/login') in React Router\n    }\n    return Promise.reject(error);        \n  }\n);\n```\n  ```js\nimport jwtDecode from 'jwt-decode';  \n\nconst token = localStorage.getItem('token');\nif (token) {\n  const { exp } = jwtDecode(token);\n  const expirationTime = exp * 1000 - Date.now();\n\n  setTimeout(() =\u003e {\n    localStorage.removeItem('token');\n    toast.info('Session expired. Please log in again.');\n    window.location.href = '/login';\n  }, expirationTime);\n}\n\n    ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthis-is-pawan%2Fauthentication-user-mern-","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthis-is-pawan%2Fauthentication-user-mern-","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthis-is-pawan%2Fauthentication-user-mern-/lists"}