mirror of
https://github.com/richard-loafle/fuse-angular.git
synced 2025-01-09 12:05:08 +00:00
(mock-api) Replaced the 'refresh-access-token' url with 'sign-in-with-token'
(auth) Changed the url on 'signInUsingToken' method to reflect the mock-api changes
This commit is contained in:
parent
a6d64b1747
commit
150ddc64d7
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"name": "@fuse/demo",
|
"name": "fuse-angular",
|
||||||
"version": "14.2.0",
|
"version": "14.2.0",
|
||||||
"description": "Fuse - Angular Admin Template and Starter Project",
|
"description": "Fuse - Angular Admin Template and Starter Project",
|
||||||
"author": "https://themeforest.net/user/srcn",
|
"author": "https://themeforest.net/user/srcn",
|
||||||
|
|
|
@ -96,8 +96,8 @@ export class AuthService
|
||||||
*/
|
*/
|
||||||
signInUsingToken(): Observable<any>
|
signInUsingToken(): Observable<any>
|
||||||
{
|
{
|
||||||
// Renew token
|
// Sign in using the token
|
||||||
return this._httpClient.post('api/auth/refresh-access-token', {
|
return this._httpClient.post('api/auth/sign-in-with-token', {
|
||||||
accessToken: this.accessToken
|
accessToken: this.accessToken
|
||||||
}).pipe(
|
}).pipe(
|
||||||
catchError(() =>
|
catchError(() =>
|
||||||
|
|
|
@ -87,10 +87,10 @@ export class AuthMockApi
|
||||||
});
|
});
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------------------------------
|
||||||
// @ Verify and refresh the access token - POST
|
// @ Sign in using the access token - POST
|
||||||
// -----------------------------------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------------------------------
|
||||||
this._fuseMockApiService
|
this._fuseMockApiService
|
||||||
.onPost('api/auth/refresh-access-token')
|
.onPost('api/auth/sign-in-with-token')
|
||||||
.reply(({request}) => {
|
.reply(({request}) => {
|
||||||
|
|
||||||
// Get the access token
|
// Get the access token
|
||||||
|
|
Loading…
Reference in New Issue
Block a user