You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -154,10 +154,10 @@ The optional parameter `type` specifies the name of UserType used for this sessi
154
154
155
155
#### Example:
156
156
```javascript
157
-
this._tokenService.signIn(
157
+
this._tokenService.signIn({
158
158
'example@example.org',
159
159
'secretPassword'
160
-
).subscribe(
160
+
}).subscribe(
161
161
res => console.log(res),
162
162
error => console.log(error)
163
163
);
@@ -183,11 +183,11 @@ Sends a new user registration request to the Server.
183
183
184
184
#### Example:
185
185
```javascript
186
-
this._tokenService.registerAccount(
186
+
this._tokenService.registerAccount({
187
187
'example@example.org',
188
188
'secretPassword',
189
189
'secretPassword'
190
-
).subscribe(
190
+
}).subscribe(
191
191
res => console.log(res),
192
192
error => console.log(error)
193
193
);
@@ -226,11 +226,11 @@ Updates the password for the logged in user.
226
226
227
227
#### Example:
228
228
```javascript
229
-
this._tokenService.updatePassword(
229
+
this._tokenService.updatePassword({
230
230
'newPassword',
231
231
'newPassword',
232
232
'oldPassword'
233
-
).subscribe(
233
+
}).subscribe(
234
234
res => console.log(res),
235
235
error => console.log(error)
236
236
);
@@ -243,9 +243,9 @@ Request a password reset from the server.
243
243
244
244
#### Example:
245
245
```javascript
246
-
this._tokenService.updatePassword(
246
+
this._tokenService.updatePassword({
247
247
'example@example.org',
248
-
).subscribe(
248
+
}).subscribe(
249
249
res => console.log(res),
250
250
error => console.log(error)
251
251
);
@@ -355,10 +355,10 @@ Returns current authentication data which are used to set auth headers.
355
355
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
0 commit comments