Skip to content

Basic login + register + CORS#17

Merged
RadimKotajnyDev merged 17 commits intomainfrom
api-fe-setup
Aug 28, 2025
Merged

Basic login + register + CORS#17
RadimKotajnyDev merged 17 commits intomainfrom
api-fe-setup

Conversation

@RadimKotajnyDev
Copy link
Copy Markdown
Collaborator

No description provided.

…nForm, and updated Button component to support `type` attribute
…for authenticated routing, and updated SignInForm to handle empty inputs
…th email and password, updated form labels with `htmlFor`, and enabled form action handling with disabled state for submit button
- Enhanced `SignUpForm` to support `name` and `lastname` fields.
- Updated header dropdown to include logout mechanism using `useAuthContext` and `useNavigate`.
- Modified `axiosInstance` to include headers for JSON and authorization tokens.
- Integrated token handling and navigation into `authMutations`.
- Added `jose` dependency for potential token handling use.
…nInForm; commented out unused code for cleanup.
- Added `DecodedTokenType` and `isUserPayload` for token structure validation.
- Implemented user information extraction from JWT for dynamic header content (`name`, `family_name`, and `email`).
- Updated header dropdown to display user details based on decoded token.
@RadimKotajnyDev RadimKotajnyDev requested a review from otheec August 27, 2025 17:45
@RadimKotajnyDev RadimKotajnyDev merged commit d9538f2 into main Aug 28, 2025
1 check passed
@RadimKotajnyDev RadimKotajnyDev deleted the api-fe-setup branch August 28, 2025 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants