Changes done to /app/api/github/callback/route.ts file to handle expiration of access token using refresh token.
First it checks if the user access token is valid or not by sending a request to fetch the repositories.
If the access token is not valid, then it uses the refresh token stored in db to fetch a new access token and then again make a request for fetching repositories.
No more requests are made and gives error and nothing is displayed on the client-side
Changes done to /app/api/github/callback/route.ts file to handle expiration of access token using refresh token.