DekuWorks / DekuWorks/241RunnersAwareness

Implement Minimal Auth Path (Login/Signup → Profile)

Open
#5 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
2
Forks
0
PR merge metrics
No merged PRs in 30d

Description

## Overview
Implement the core authentication flow for user login and registration with automatic redirect to profile page.

## Acceptance Criteria
- [ ] Login form → POST /api/v1/auth/login
- [ ] On success: store token securely → GET /api/v1/users/me → redirect /profile
- [ ] Sign-up form → POST /api/v1/auth/register with same post-login flow
- [ ] Route guards: unauth → /login
- [ ] Persist session (token) across refresh; 401 → logout + redirect /login

## Test Notes
- Test login flow with valid credentials
- Test signup flow with new user
- Test session persistence across browser refresh
- Test 401 handling and automatic logout

## Implementation Notes
- Use secure token storage (localStorage with proper error handling)
- Implement proper error handling for network failures
- Add loading states during authentication
- Ensure proper redirect after successful auth

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.