-
Notifications
You must be signed in to change notification settings - Fork 61
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 auth/login #54
Comments
Hi @personwholearn I am asking this because the error you are facing is when some table that you are trying to query to is not present in the database. For reference you can check this |
hi @mayank-SFIN571 ,this my .env file details : |
in some other test project DB_HOST=localhost |
hello @mayank-SFIN571 , can you help me ? |
hello @personwholearn Can you check whether your migrations were successful or not. The only reason I am focusing on the Database structure is because the error is for "tableName does not exist" according to the postgresql docs. Also to ensure everything is in place, i cloned the repo and tried with this .env
This configuration is working fine for me. Also do check whether your Database structure look like this In your case the name of the Database should be postgres and the schema name should again be postgres |
@personwholearn |
i will test your .env and give you feedback>>> NODE_ENV=production |
@personwholearn just make sure you have the correct schema name in you .env file. |
i will test it with schema of lbstarter and without schema |
thanks bro so much it works NODE_ENV=production @mayank-SFIN571 what is different between /auth/token and /auth/login-token and how can i login through postman or saving the access token for every requeset? |
Hi @personwholearn Whereas /auth/login-token is a Resource owner technique, which is again explained in the above mention tutorial. You can work with any of the above methods, according to your application needs. |
ok thanks soooooo much i also followed for Adding 'Authorize' button in API explorer and it works . |
@mayank-SFIN571 can I change the password of "temp123!@#" of the new user through API |
@mayank-SFIN571 which controller can I change the password ? or do I have to create a new one? |
when I go to http://127.0.0.1:3000/auth/login and send the request with the below
{
"client_id": "webapp",
"client_secret": "saqw21!@",
"username": "super_admin",
"password": "test123!@#"
}
I got reponed of
{
"error": {
"statusCode": 401,
"name": "UnauthorizedError",
"message": {
"name": "error",
"length": 185,
"severity": "ERROR",
"code": "42P01",
"position": "194",
"file": "d:\pginstaller_12.auto\postgres.windows-x64\src\backend\parser\parse_relation.c",
"line": "1173",
"routine": "parserOpenTable"
}
}
}
The text was updated successfully, but these errors were encountered: