Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 84 Reconnect Client-Server and Role field JWT Payload #85

Merged
merged 4 commits into from
Jan 28, 2025

Conversation

loklokyx
Copy link
Contributor

@loklokyx loklokyx commented Jan 25, 2025

Change Summary

  • feat(auth): include 'role' field in JWT token for role-based access control
  • refactor(client-server): replace client-side mock API with proper server communication
  • chore: ensure seamless integration between client and server endpoints

Change Form

Fill this up (NA if not available). If a certain criteria is not met, can you please give a reason.

  • [Y] The pull request title has an issue number
  • [Y] The change works by "Smoke testing" or quick testing
  • [N] The change has tests
  • [Y] The change has documentation

Related issue

…rver

- feat(auth): include 'role' field in JWT token for role-based access control
- refactor(client-server): replace client-side mock API with proper server communication
- chore: ensure seamless integration between client and server endpoints
@loklokyx loklokyx self-assigned this Jan 25, 2025
@loklokyx loklokyx added backend Task must have a back end issue enhancement New feature or request frontend Task must have a front end issue labels Jan 25, 2025
@loklokyx loklokyx changed the title feat(auth): add custom 'role' field to JWT token, reconnect client-se… Issue 84 Reconnect Client-Server and Role field JWT Payload Jan 25, 2025
…e retrieval

- refactor(auth): clean up JWT payload by removing unnecessary fields
- feat(auth): add function to extract and utilize the 'role' field from JWT token
- fix(api): add trailing slash to endpoint URLs (e.g., questions/question-bank) to resolve CORS errors
- feat(auth): configure Bearer token in axios instance for authenticated API requests
@AarifLamat AarifLamat merged commit ddcebae into main Jan 28, 2025
5 checks passed
@loklokyx loklokyx deleted the issue-84-Reconnect_Client-Server branch January 28, 2025 06:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Task must have a back end issue enhancement New feature or request frontend Task must have a front end issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reconnect Client-Server
2 participants