Since an organization is created after a user is registered, the payload returned should include the created organization, same for when a user logs in, the payload for the response would also return or include the user's organizations, and same goes for magic link login.
Description
Since an organization is created after a user is registered, the payload returned should include the created organization, same for when a user logs in, the payload for the response would also return or include the user's organizations, and same goes for magic link login.
Related Issue (Link to issue ticket)
Motivation and Context
The frontend needs to display the organizations a user belongs to when a user logs in or registers.
How Has This Been Tested?
This was tested with pytest and postman
Screenshots (if appropriate - Postman, etc):
Test for pytest
test for registration payload
test for login
test for magic-link login
Types of changes
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
[x] My code follows the code style of this project.
[x] My change requires a change to the documentation.
Since an organization is created after a user is registered, the payload returned should include the created organization, same for when a user logs in, the payload for the response would also return or include the user's organizations, and same goes for magic link login.
Description
Since an organization is created after a user is registered, the payload returned should include the created organization, same for when a user logs in, the payload for the response would also return or include the user's organizations, and same goes for magic link login.
Related Issue (Link to issue ticket)
Motivation and Context
The frontend needs to display the organizations a user belongs to when a user logs in or registers.
How Has This Been Tested?
This was tested with pytest and postman
Screenshots (if appropriate - Postman, etc):
Test for pytest
test for registration payload
test for login
test for magic-link login
Types of changes
Checklist: