mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: Initial Login flow (#42)
This just implements a basic sign-in flow, using the new endpoints in #29 :  This brings over several dependencies that are necessary: - `formik` - `yep` Ports over some v1 code to bootstrap it: - `FormTextField` - `PasswordField` - `CoderIcon` And implements basic sign-in: Fixes #37 Fixes #43 This does not implement it navbar integration (importantly - there is no way to sign out yet, unless you manually delete your `session_token`). I'll do that in the next PR - figured this was big enough to get reviewed.
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* Global setup for our Jest tests
|
||||
*/
|
||||
|
||||
// Set up 'next-router-mock' to with our front-end tests:
|
||||
// https://github.com/scottrippey/next-router-mock#quick-start
|
||||
jest.mock("next/router", () => require("next-router-mock"))
|
||||
Reference in New Issue
Block a user