-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ensure handles are treated as case insensitive when signing in #126
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
2 Skipped Deployments
|
@@ -14,6 +14,7 @@ | |||
}, | |||
"dependencies": { | |||
"@atproto/oauth-types": "^0.1.2", | |||
"@atproto/syntax": "^0.3.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The @atproto
ification of our code begins lol.
I'm gonna gradually convert our handling of core protocol things (handles, DIDs, did doc and pds resolution etc.) to the official libraries but definitely still don't wanna use the API clients because they're not really suited to our use case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well done!
let handleOrDid = identifier; | ||
// Sanitize only handles | ||
if ( | ||
isValidHandle(identifier) || |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need to strip whitespace too
are handles case sensitive or just want lowercase?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Handles are case insensitive (like domain names) but dids are technical case sensitive.
35c4c98
No description provided.