Once https://github.com/neurobagel/api/issues/322 is resolved, node API instances can also enable authentication.
We'd like the query tool to be able to work with both federation API and node API regardless of whether they have authentication enabled or not.
Although the authentication flow can be toggled on deployment, we want to make the authentication optional on the UI front to allow users to make queries to APIs that do not require authentication freely.
The goal here is to allow the user to send the query without having to authenticate, how APIs handle the presence or absence of the ID token when receiving and sending out requests and how they respond to requests is their responsibility.
[x] User should be able to close the modal without authenticating
[x] User should be able to access the modal again once it's closed
[x] Preferably by selecting the profile menu
[x] Requests should go out to the API whether user has been authenticated or not
Once https://github.com/neurobagel/api/issues/322 is resolved, node API instances can also enable authentication. We'd like the query tool to be able to work with both federation API and node API regardless of whether they have authentication enabled or not. Although the authentication flow can be toggled on deployment, we want to make the authentication optional on the UI front to allow users to make queries to APIs that do not require authentication freely. The goal here is to allow the user to send the query without having to authenticate, how APIs handle the presence or absence of the ID token when receiving and sending out requests and how they respond to requests is their responsibility.