Repository navigation
fix: validate username and GitHub inline during signup - #27
Merged
Merged
Conversation
- Add /auth/check-username endpoint to verify availability - Add /auth/check-github endpoint to verify GitHub user exists - Change description from editor to inline input - Validate immediately after each field entry Fixes #9
📦 Package PreviewYour package is ready to test! bun install -g nemar-cli@PR27Version: 🤖 Updated on each push. |
- Add try-catch to backend endpoints - Use COLLATE NOCASE for case-insensitive username check - Trim input before validation - Distinguish network errors from server errors in CLI
Contributor
Author
PR Review SummaryIssues Found and FixedCritical Issues (Fixed):
Important Issues (Fixed): Testing Completed
Endpoints Verified# Username available
curl "https://api.osc.earth/nemar/auth/check-username?username=testuser123"
{"available":true}
# GitHub valid
curl "https://api.osc.earth/nemar/auth/check-github?username=neuromechanist"
{"valid":true,"username":"neuromechanist"}
# GitHub invalid
curl "https://api.osc.earth/nemar/auth/check-github?username=notarealuser12345"
{"valid":false} |
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/auth/check-usernameendpoint to verify availability immediately/auth/check-githubendpoint to verify GitHub user exists immediatelyFixes #9
Test plan