Skip to content

Commit

Permalink
Remove unused token expiry logic and update package dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmarv committed Jan 29, 2025
1 parent e6fb3e0 commit 2376cb4
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 45 deletions.
12 changes: 0 additions & 12 deletions netmanager-app/app/(authenticated)/clients/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ const ClientManagement = () => {
setLoading(true)
try {
const response = await getClientsApi()
console.log(response.clients)
setClients(response.clients)
} catch (error) {
toast({
Expand Down Expand Up @@ -136,17 +135,6 @@ const ClientManagement = () => {
const activatedClients = clients.filter((client) => client.isActive).length
const deactivatedClients = clients.filter((client) => !client.isActive).length

const nearestExpiringToken = clients
.filter((client) => client.access_token && client.access_token.expires)
.filter((client) => {
const expiryDate = new Date(client.access_token.expires)
return expiryDate > new Date()
})
.sort((a, b) => {
const dateA = new Date(a.access_token.expires).getTime()
const dateB = new Date(b.access_token.expires).getTime()
return dateA - dateB
})[0]


return (
Expand Down
32 changes: 0 additions & 32 deletions netmanager-app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion netmanager-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"@reduxjs/toolkit": "^2.5.0",
"@tanstack/react-query": "^5.62.11",
"@tanstack/react-query-devtools": "^5.62.11",
"@tanstack/react-table": "^8.20.6",
"@types/leaflet": "^1.9.15",
"@types/react-redux": "^7.1.34",
"apexcharts": "^4.3.0",
Expand Down

0 comments on commit 2376cb4

Please sign in to comment.