Allow users + tests to sign in to multiple users #54751
Labels
platform: api
Server application that needs familiarity with Express, Loopback, MongoDB etc.
Milestone
Currently the development sign in process works like this:
foo@bar.com
as their email addressjwt_access_token
to allow access to thefoo@bar.com
accountThis means changing accounts is a convoluted process:
foo@bar.com
email address (e.g. usepnpm seed:certified-user
)jwt_access_token
cookieThe main benefit of this is that it's quick to get started. As a contributor, I only need to click on the "Sign in" button and I'm in.
Handling multiple accounts
I propose we modify the learn client and server to allow the client to change user without the contributor having to directly modify the database (no need to seed). To do this we could:
{ email: string }
and signs you in to that user, if they existA simple dropdown with a submit button should be enough. If the developmentuser is selected by default, then signing in is still pretty quick. The only addition is that you'd have to press enter when you arrive on the sign in page.
The text was updated successfully, but these errors were encountered: