Ticket: Issue with Team Member Addition Link Logging Out Users
@nithur Just created a ticket
Question: Why does the link to add team members keep logging out the user?
Attempted: I am trying to add a member to my team but the link sent to the user keeps them logging out.
Working On: adding team members
Take it from here @Mod π₯
Question: Why does the link to add team members keep logging out the user?
Attempted: I am trying to add a member to my team but the link sent to the user keeps them logging out.
Working On: adding team members
Take it from here @Mod π₯
35 Replies
@nithur the new version should solve it
Hey @Nevo David thanks this solves the issue with logging out the user but the user isn't getting added to the team
when the user clicks on the invite link they are getting redirected to the /launches page
Hi, is there any updates on this?
@Mod π₯ please help @nithur
Not yet @nithur I am going to implement a different invite system that doesn't work on token but on emails
does it mean I can't invite any team members at the moment?
is there any workaround?
You can add them in the db
into user organizations
but it's working on https://platform.postiz.com
Need to dig a bit deeper into your use-case
Did you check maybe they don't click on it on time? the invite is for 1 hour
no I am checking it with another dummy account myself
What happend if you are already logged in
and try to click on the link?
it just redirects to the home page
let me have a quick look again
maybe I have missed something
one moment
i have already created the account for this user before you rolled out the latest version
would it be an issue?
What did you put in BACKEND_INTERNAL_URL?
http://localhost:3000
I just checked with a fresh account, it doesn't work either
and what do you have inNEXT_PUBLIC_BACKEND_URL?
no
mydomain.com/api
Can you copy this to BACKEND_INTERNAL_URL?
yes but it is not working either
should i remove the /api part
You have now in BACKEND_INTERNAL_URL the same exact thing as NEXT_PUBLIC_BACKEND_URL
No, you need the /api part
yes right
Do you have access to the code?
yes
apps/frontend/src/middleware.ts
line 71
can you check the error you are getting from this
when you use an invite
Please also make sure you are not using an old invite in your email
it might have expired
yes, i am trying everytime with a new invite
just to clarify, I am running this with docker compose, can I check the log for this line there?
I think not, because it's taking the image from ghcr
When you use the link, you don't see on the top right a box to change org?
no
And if you open the invite when you are logged in
you say it's also not working
?
yes, I am trying while the other account is logged in
and I have tried both email invite and link
Damn
Do you use it with STRIPE_PUBLISHABLE_KEY?
I think I see the problem
let me upload a fix
wdym? I have never added a STRIPE KEY
I found the bug
uploading a version
nice, please let me know once done
Ok, it's building the docker
few minutes π
@nithur you can take the new version
wow, awesome working now
Thank you so much @Nevo David for the effort π
Thank you so much for pushing me to find it haha
Hi @nithur this thread is closed for now, please open a new one if you need more help