View Code? Open in Web Editor
NEW
Intersect.TS is a node.js package(npm) build with the TypeScript techno', for helping peoples to develop their tools/apps/programs using the IE(Intersect Engine) API more easily.
Home Page: https://github.com/AriusII/IntersectTS
License: MIT License
intersectts's Introduction
๐ Hi, Iโm @AriusII
๐ Iโm interested in ...
๐ฑ Iโm currently learning ...
๐๏ธ Iโm looking to collaborate on ...
๐ซ How to reach me ...
intersectts's People
Contributors
Stargazers
Watchers
intersectts's Issues
Hi user registration don't work because you have set "user" instead "username"
async userRegister ( user , password , email ) {
console . log ( "User" , user , password , email )
const res = await fetch ( `${ this . _url } /api/v1/users/register` , {
method : 'POST' ,
headers : {
'Content-Type' : 'application/json' ,
'Authorization' : `Bearer ${ this . _token } `
} ,
body : JSON . stringify ( {
user : user ,
password : password ,
email : email
} )
} ) ;
return await res . json ( ) ;
}
Need to replace user
to username