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

Modify the response of the login api end point #91

Open
itsachrafmansari opened this issue Jun 10, 2024 · 0 comments
Open

Modify the response of the login api end point #91

itsachrafmansari opened this issue Jun 10, 2024 · 0 comments
Assignees

Comments

@itsachrafmansari
Copy link
Member

itsachrafmansari commented Jun 10, 2024

Modify the response of the /api/student/login endpoint to have this format :

{
    status: "", // String : authenticated | wrong credentials
    token: "", // String : the value of the token if authenticated | null if not authenticated
    data: {
        firstname: "", // String
        lastname: "", // String
        role: "", // String : student | teacher | staff
        cneNumber: "", // String
        apogeeNumber: #, // Number
        major: {
            id: #, // Number
            abbreviation: "", // String
            fullLabel: "", // String
        },
    },
}
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

No branches or pull requests

2 participants