`/auth/dashboard` invalid token error
# support-questions
p
/auth/dashboard
invalid token error
n
Hi @productdevbook Could you elaborate on the issue you are facing?
Does the API return this?
p
this live production api
but i have no idea how to debug it
server running
n
Which API returns invalid token?
p
console.log no see see html bottom after hidden
n
Can you post the full error?
Are you using the same api key that you set in your backend when initialising the dashboard recipe?
p
yes
n
What backend SDK are you using?
And version
p
Copy code
POSTGRESQL_USER=postgres
POSTGRESQL_PASSWORD=467fcasdasdasdasd
POSTGRESQL_DATABASE_NAME=postgres
POSTGRESQL_TABLE_SCHEMA=auth
POSTGRESQL_HOST=devserver_db
POSTGRESQL_PORT=5432
API_KEYS=9e0342ce8e5db4asdasdads
iam used docker
registry.supertokens.io/supertokens/supertokens-postgresql:4.4
n
And what sdk and version are you using for the backend? (Node, python etc)
p
"supertokens-node": "^13.1.1", "fastify": "^4.13.0", nodejs 18
n
Can you post the code for where you initialise the dashboard recipe?
p
ovvv soryyy 🤦‍♂️ this apikey dont change old
apiKey: env.supertokens.apiKey,
iam change env now thank you
n
Happy to help
p
login and after see problem
n
Does your normal sign in flow work?
For the actual website
(Not the dashboard)
p
same problem
signup, singin
n
Can you post the full supertokens init config
For your backend
What is the connectionUri (for the core) you are using?
When you call supertokens init on your backend
What are the values you are using under
env.supertokens
Whats the value of
env.supertokens.connectionURI
p
docker url
n
Can you change it to
http://devserver-supertokens:3567/
and try? Note you will have to change it in your compose file and other places you use this URL as well
p
this now value used, do i need to change this ?
do i have to export supertokens as a url ?
n
Use
http://devserver-supertokens:3567/
and make sure to restart everything after
p
this supertokens docker logs
n
Everywhere you use
http://devserver_supertokens:3567/
->> Change it to
http://devserver-supertokens:3567/
p
this server
n
Make sure to change it everywhere, including your compose file so that the docker service name also changes
p
only working _
this your supertokens problem
_
n
The problem is that the URL validation is failing because of
_
, while this is something we will fix you can use
-
instead as a workaround
p
But it does not provide this communication between Docker, we do not use it in another place.
Our Docker management system only provides communications with _.
example supertokens docker db ->
POSTGRESQL_HOST=devserver_db
n
Which docker management system is this?
p
n
Right so you would need to create a new service with easypanel and set the name with
-
. Besides that there isnt much we can do to help here. We have an issue open about this that you can track: https://github.com/supertokens/supertokens-core/issues/574
p
thank you, I hope it will be resolved soon
2 Views