User Interface medium complexity mobilefrontend
0
Dependencies
0
Dependents
0
Entities
0
Integrations

Description

The primary sign-in screen for peer mentors, coordinators, and organization admins on both the mobile app and admin portal. It renders email and password input fields, a submit button, and navigation links to registration and password recovery. It delegates credential submission to AuthService and handles error display for invalid credentials.

Feature: Email & Password Login

login-screen

Sources & reasoning

Lines 42 and 319 both explicitly mark email/password as the MVP authentication method while deferring BankID and Vipps to Phase 2. Phase 1 = MVP by ordinal mapping. The feature is foundational - no other platform capability works without authenticated sessions.

  • docs/source/likeperson.md · line 42
    MVP leveres med e-post/passord-innlogging; BankID og Vipps ruller ut i Fase 2
  • docs/source/likeperson.md · line 319
    E-post/passord innlogging (BankID/Vipps i fase 2)

Responsibilities

  • Render email and password input fields with client-side format validation
  • Submit credentials to AuthService and surface authentication errors to the user
  • Navigate to RegisterScreen or ForgotPasswordScreen on user request
  • Persist session token received from AuthService via TokenRepository

Interfaces

handleSubmit(email: string, password: string): Promise<void>
navigateToRegister(): void
navigateToForgotPassword(): void