titan
titan9mo ago

Help me with authentication issue.

No description
No description
3 Replies
lee
lee9mo ago
Can you describe your issue? The screenshots look fine to me
titan
titanOP9mo ago
in the left , act as user checkbox is checked but if I uncheck it and try again, you can see right picture.
lee
lee9mo ago
Right. Are you trying to figure out why that is happening? It seems like you intended that behavior based on the code Concretely, the getUsers method checks if the request is authenticated. If it is, it returns the users. If not, if throws an Unauthorized error. And that's what you're seeing: on the left you have a successful authenticated query, and on the right you have an unauthenticated query that throws an error

Did you find this page helpful?