We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc804e2 commit 8bc5fcaCopy full SHA for 8bc5fca
1 file changed
src/simperium/auth.js
@@ -14,15 +14,17 @@ export default function Auth( appId, appSecret ) {
14
inherits( Auth, EventEmitter );
15
16
Auth.prototype.authorize = function( username, password ) {
17
- var body = JSON.stringify( {username: username, password: password } ),
+ var body = JSON.stringify( { username: username, password: password } ),
18
promise = this.request( 'authorize/', body );
19
20
return promise;
21
}
22
23
-// TODO: username and password to create a user
24
-Auth.prototype.create = function() {
+Auth.prototype.create = function( username, password ) {
25
+ promise = this.request( 'create/', body );
26
27
+ return promise;
28
29
30
Auth.prototype.getUrlOptions = function( path ) {
0 commit comments