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

Fetch user details from token #16

Merged
merged 14 commits into from
Dec 23, 2023
Merged

Fetch user details from token #16

merged 14 commits into from
Dec 23, 2023

Conversation

Bahugunajii
Copy link
Member

@Bahugunajii Bahugunajii commented Dec 13, 2023

Description

  • Fetch username from the database based on studentId extracted from the token
  • Reports will be shown for the logged-in user now
  • Refreshes the access token on expiry
  • Code optimizations

Checklist

  • Self-testing

@Bahugunajii Bahugunajii changed the title fetch userId from token Fetch user details from token Dec 21, 2023
Copy link
Contributor

@pritamps pritamps left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left comments below!

api/afdb/userName.ts Outdated Show resolved Hide resolved
app/page.tsx Outdated Show resolved Hide resolved
app/page.tsx Outdated Show resolved Hide resolved
app/page.tsx Outdated Show resolved Hide resolved
app/reports/reports_list.tsx Show resolved Hide resolved
api/afdb/userName.ts Outdated Show resolved Hide resolved
services/validation.ts Show resolved Hide resolved
Copy link
Contributor

@pritamps pritamps left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved!

@Bahugunajii Bahugunajii merged commit e07b6fd into main Dec 23, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants