mirror of
https://github.com/richard-loafle/fuse-angular.git
synced 2024-10-30 01:08:47 +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",
|
||||
"description": "Fuse - Angular Admin Template and Starter Project",
|
||||
"author": "https://themeforest.net/user/srcn",
|
||||
|
|
|
@ -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(() =>
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user