-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make parameter names in core APIs more consistent (#52)
This replaces the `name` parameter during both registration (required) and authentication (optional) with `username`. This better reflects what the parameter actually represents, and helps disambiguate it from a display name. In doing so, I've adjusted the calls to the backend during registration to omit this data completely, since only the `upgrade` parameter is used in practice. This keeps data filtering simpler. Prior to a 1.0 tag, this retains support for the older `name` parameter at runtime only. TypeScript users will get an immediate type error but nothing will break if they ignore it; plain JS users will get no such warning and things will continue to work. I'll open follow-up tasks to remove it completely. Fixes #48
- Loading branch information
Showing
2 changed files
with
21 additions
and
33 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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