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

allow requests only after creating a user #470

Open
Brunofp99 opened this issue Nov 5, 2024 · 0 comments
Open

allow requests only after creating a user #470

Brunofp99 opened this issue Nov 5, 2024 · 0 comments

Comments

@Brunofp99
Copy link

**The problem:
Many users report that an error occurs after a few requests, well this error occurs because they do not have a valid user token

**The solution:
allow requests only for users who have a valid token, so the user cannot use the API when not logged in

**The alternatives:
add valid token to all routes and return invalid token error or try logging in

Additional context
in the group it was also commented on improving the generic error message or refactoring the validToken try catch

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

1 participant