Skip to content

Commit c65fd54

Browse files
committed
Adjust README for v0.2.0-beta.1
1 parent 01d0ad0 commit c65fd54

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,10 @@ The optional parameter `type` specifies the name of UserType used for this sessi
154154
155155
#### Example:
156156
```javascript
157-
this._tokenService.signIn(
157+
this._tokenService.signIn({
158158
'example@example.org',
159159
'secretPassword'
160-
).subscribe(
160+
}).subscribe(
161161
res => console.log(res),
162162
error => console.log(error)
163163
);
@@ -183,11 +183,11 @@ Sends a new user registration request to the Server.
183183
184184
#### Example:
185185
```javascript
186-
this._tokenService.registerAccount(
186+
this._tokenService.registerAccount({
187187
'example@example.org',
188188
'secretPassword',
189189
'secretPassword'
190-
).subscribe(
190+
}).subscribe(
191191
res => console.log(res),
192192
error => console.log(error)
193193
);
@@ -226,11 +226,11 @@ Updates the password for the logged in user.
226226
227227
#### Example:
228228
```javascript
229-
this._tokenService.updatePassword(
229+
this._tokenService.updatePassword({
230230
'newPassword',
231231
'newPassword',
232232
'oldPassword'
233-
).subscribe(
233+
}).subscribe(
234234
res => console.log(res),
235235
error => console.log(error)
236236
);
@@ -243,9 +243,9 @@ Request a password reset from the server.
243243
244244
#### Example:
245245
```javascript
246-
this._tokenService.updatePassword(
246+
this._tokenService.updatePassword({
247247
'example@example.org',
248-
).subscribe(
248+
}).subscribe(
249249
res => console.log(res),
250250
error => console.log(error)
251251
);
@@ -355,10 +355,10 @@ Returns current authentication data which are used to set auth headers.
355355
If you want to redirect to the protected URL after signing in, you need to set `signInStoredUrlStorageKey` and in your code you can do something like this
356356
357357
```js
358-
this._tokenService.signIn(
358+
this._tokenService.signIn({
359359
'example@example.org',
360360
'secretPassword'
361-
).subscribe(
361+
}).subscribe(
362362
res => {
363363
// You have to add Router DI in your component
364364
this.router.navigateByUrl(localStorage.getItem('redirectTo'));

0 commit comments

Comments
 (0)