feat: add username check on home page
Changes I have made.
- Created an endpoint
validate-usernamewhich validates a given username. - It continues to work whether the api endpoints works or not, or the PAT is provided or not.
- Fixed a minor bug which was causing a full page refresh on homescreen on form submit.
@Miran-Firdausi is attempting to deploy a commit to the vishwagauravin's projects Team on Vercel.
A member of the Team first needs to authorize it.
Please review the changes. If you are okay with the changes please provide the hacktoberfest-accepted label.
Why are you creating new API and then hitting the GitHub's API, also please try adding Timeout handling via controller in API.
Why are you creating new API and then hitting the GitHub's API
Using Next APIs ensures secrets are not exposed as they are run server side. So if we have to use PAT, it remains safe.
please try adding Timeout handling via controller in API.
I have added the timeout, please review.
We are not using any secret for GitHub API, kindly remove it and make a single hook for checking valid username.
My suggestion would have to use the PAT, It increases the rate limit from 60 to 5000, but I have removed the logic as per your wish.