(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:
Sercan Yemen 2022-05-24 12:43:51 +03:00
parent a6d64b1747
commit 150ddc64d7
3 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,5 @@
{
"name": "@fuse/demo",
"name": "fuse-angular",
"version": "14.2.0",
"description": "Fuse - Angular Admin Template and Starter Project",
"author": "https://themeforest.net/user/srcn",

View File

@ -96,8 +96,8 @@ export class AuthService
*/
signInUsingToken(): Observable<any>
{
// Renew token
return this._httpClient.post('api/auth/refresh-access-token', {
// Sign in using the token
return this._httpClient.post('api/auth/sign-in-with-token', {
accessToken: this.accessToken
}).pipe(
catchError(() =>

View File

@ -87,10 +87,10 @@ export class AuthMockApi
});
// -----------------------------------------------------------------------------------------------------
// @ Verify and refresh the access token - POST
// @ Sign in using the access token - POST
// -----------------------------------------------------------------------------------------------------
this._fuseMockApiService
.onPost('api/auth/refresh-access-token')
.onPost('api/auth/sign-in-with-token')
.reply(({request}) => {
// Get the access token