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

login issue with new added user #118

Open
lalitgawde opened this issue Nov 12, 2023 · 1 comment
Open

login issue with new added user #118

lalitgawde opened this issue Nov 12, 2023 · 1 comment

Comments

@lalitgawde
Copy link

          Hi @VictorConstantin98  @malisara

You should just pass the exact users of fakestoreapi.com/users. {"username":"Victor98","password":"parola1"} is not a fakestoreapi sample users. in the documentation you can see this: "You can use any of the users' username and password available in users API to get token. any other usernames return error."

Originally posted by @keikaavousi in #97 (comment)
Then how to add user and then login with that user.

@lalitgawde lalitgawde changed the title Hi @VictorConstantin98 @malisara login issue with new added user Nov 12, 2023
@7k997
Copy link

7k997 commented May 16, 2024

You cannot as this API is meant to be used to help you with working / previewing your project with real life kind of data. The users are preset and cannot be altered. The main purpose of users is you have access to environment which returns you jwt / token / refresh token which you can then use in application for authorization purposes.

TLDR: Users / products & anything else cannot be altered / added / modified -> only fetched :)

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