abp icon indicating copy to clipboard operation
abp copied to clipboard

Export remember-me-service.ts

Open gvassao opened this issue 2 years ago • 0 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

My code was using the functions setRememberMe and removeRememberMe, which were removed in this PR.

I needed these functions because my app uses a password authentication flow and requires custom parameters for login. The login function only accepts LoginParams as a parameter, which doesn't allow for custom parameters.

Instead of the login function, I had to use loginUsingGrant, but this function does not account for the "remember me" feature. Previously, I relied on the setRememberMe and removeRememberMe functions to handle this, but now I can't because they have been removed.

Describe the solution you'd like

I would like to be able to use the remember-me service so I can implement the "remember me" function. However, it seems that this module is not exported because when I try to use it, I get the following error:

import { RememberMeService } from '@abp/ng.oauth/lib/services/remember-me.service';

Error: Module not found: Error: Package path ./lib/services/remember-me.service is not exported from package

Additional context

Looking at the remeber me service, I can manually set the local storage, but if ABP modifies how it handles this functionality, my code might break. I'm open to suggestions if there's another way to achieve this.

gvassao avatar Jun 18 '24 02:06 gvassao