0
votes

In my Spartacus application(version 1.4.3) , I want to avoid a http post call made from refreshToken method in user-authentication-token.service.ts as we are having a separate setup for user login.

So I need to override the refreshToken method to avoid the http post method happening inside that method. Please let me know if there is a way to do it .

1

1 Answers

1
votes

You described the solution in the question. Create your own UserAuthenticationTokenService which extends spartacus one. Then override refreshToken method and provide your service as UserAuthenticationTokenService (eg. { provide: UserAuthenticationTokenService, useClass: NewUserAuthenticationTokenService })