@@ -155,8 +155,8 @@ The optional parameter `type` specifies the name of UserType used for this sessi
155155# ### Example:
156156` ` ` javascript
157157this._tokenService.signIn({
158- ' example@example.org' ,
159- ' secretPassword'
158+ email: ' example@example.org' ,
159+ password: ' secretPassword'
160160}).subscribe(
161161 res => console.log(res),
162162 error => console.log(error)
@@ -184,9 +184,9 @@ Sends a new user registration request to the Server.
184184# ### Example:
185185` ` ` javascript
186186this._tokenService.registerAccount({
187- ' example@example.org' ,
188- ' secretPassword' ,
189- ' secretPassword'
187+ email: ' example@example.org' ,
188+ password: ' secretPassword' ,
189+ passwordConfirmation: ' secretPassword'
190190}).subscribe(
191191 res => console.log(res),
192192 error => console.log(error)
@@ -227,9 +227,9 @@ Updates the password for the logged in user.
227227# ### Example:
228228` ` ` javascript
229229this._tokenService.updatePassword({
230- ' newPassword' ,
231- ' newPassword' ,
232- ' oldPassword'
230+ password: ' newPassword' ,
231+ passwordConfirmation: ' newPassword' ,
232+ passwordCurrent: ' oldPassword'
233233}).subscribe(
234234 res => console.log(res),
235235 error => console.log(error)
@@ -244,7 +244,7 @@ Request a password reset from the server.
244244# ### Example:
245245` ` ` javascript
246246this._tokenService.updatePassword({
247- ' example@example.org' ,
247+ email: ' example@example.org' ,
248248}).subscribe(
249249 res => console.log(res),
250250 error => console.log(error)
@@ -285,9 +285,9 @@ this._tokenService.init({
285285});
286286
287287this._tokenService.signIn({
288- ' example@example.com' ,
289- ' secretPassword' ,
290- ' ADMIN'
288+ email: ' example@example.com' ,
289+ password: ' secretPassword' ,
290+ userType: ' ADMIN'
291291})
292292
293293this._tokenService.currentUserType; // ADMIN
@@ -356,8 +356,8 @@ If you want to redirect to the protected URL after signing in, you need to set `
356356
357357` ` ` js
358358this._tokenService.signIn({
359- ' example@example.org' ,
360- ' secretPassword'
359+ email: ' example@example.org' ,
360+ password: ' secretPassword'
361361}).subscribe(
362362 res => {
363363 // You have to add Router DI in your component
0 commit comments