@accounts/client to your app with yarn or npm:
Login the user with a specific service.
Logout the user.
Retrieve the current authenticated user
Will return the current logged in user informations. Must be logged in.
Impersonating another user
If you need to you can allow some users to impersonate the other users accounts eg: only admin users can impersonate to other users. Your current session will be replaced by another session. Must be logged in.