Should make an auth request to the server. Usually supports logging in by a password or by a JWT.
Login and password or something else, depending on the target application
Usually returns information about the user and JWT tokens. JWT is retrieved from auth response with JwtConfig.authResponseToJwt.
Used to implement feature, which allows logging in as another user. For example, director role may want to log in as manager role. This feature is optional.
the access token of the current user (not target).
the parameter used to build the request. Might be complex and include user role, location, etc.
The AuthResponse
as if the target user logged in using his credentials.
Invalidates tokens.
the access token of the user being logged out. Might be the token, returned by loginAs function.
Optional functionality
Generated using TypeDoc
Provides methods to interact with backend. Errors, thrown by the methods, MUST be human-readable strings. You can implement this using ngx-custmapp-errors package (if you want, also use ngx-customapp-proto-http). You could also learn more about error handling convention by reading the ngx-customapp-errors docs.