P
Postizβ€’3mo ago
Support

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 πŸ”₯
35 Replies
Nevo David
Nevo Davidβ€’3mo ago
@nithur the new version should solve it
nithur
nithurβ€’2mo ago
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?
Support
SupportOPβ€’2mo ago
@Mod πŸ”₯ please help @nithur
Nevo David
Nevo Davidβ€’2mo ago
Not yet @nithur I am going to implement a different invite system that doesn't work on token but on emails
nithur
nithurβ€’2mo ago
does it mean I can't invite any team members at the moment? is there any workaround?
Nevo David
Nevo Davidβ€’2mo ago
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
nithur
nithurβ€’2mo ago
no I am checking it with another dummy account myself
Nevo David
Nevo Davidβ€’2mo ago
What happend if you are already logged in and try to click on the link?
nithur
nithurβ€’2mo ago
it just redirects to the home page
Nevo David
Nevo Davidβ€’2mo ago
let me have a quick look again maybe I have missed something one moment
nithur
nithurβ€’2mo ago
i have already created the account for this user before you rolled out the latest version would it be an issue?
Nevo David
Nevo Davidβ€’2mo ago
What did you put in BACKEND_INTERNAL_URL?
nithur
nithurβ€’2mo ago
http://localhost:3000 I just checked with a fresh account, it doesn't work either
Nevo David
Nevo Davidβ€’2mo ago
and what do you have inNEXT_PUBLIC_BACKEND_URL? no
nithur
nithurβ€’2mo ago
mydomain.com/api
Nevo David
Nevo Davidβ€’2mo ago
Can you copy this to BACKEND_INTERNAL_URL?
nithur
nithurβ€’2mo ago
yes but it is not working either should i remove the /api part
Nevo David
Nevo Davidβ€’2mo ago
You have now in BACKEND_INTERNAL_URL the same exact thing as NEXT_PUBLIC_BACKEND_URL No, you need the /api part
nithur
nithurβ€’2mo ago
yes right
Nevo David
Nevo Davidβ€’2mo ago
Do you have access to the code?
nithur
nithurβ€’2mo ago
yes
Nevo David
Nevo Davidβ€’2mo ago
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
nithur
nithurβ€’2mo ago
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?
Nevo David
Nevo Davidβ€’2mo ago
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?
nithur
nithurβ€’2mo ago
no
No description
Nevo David
Nevo Davidβ€’2mo ago
And if you open the invite when you are logged in you say it's also not working ?
nithur
nithurβ€’2mo ago
yes, I am trying while the other account is logged in and I have tried both email invite and link
Nevo David
Nevo Davidβ€’2mo ago
Damn Do you use it with STRIPE_PUBLISHABLE_KEY? I think I see the problem let me upload a fix
nithur
nithurβ€’2mo ago
wdym? I have never added a STRIPE KEY
Nevo David
Nevo Davidβ€’2mo ago
I found the bug uploading a version
nithur
nithurβ€’2mo ago
nice, please let me know once done
Nevo David
Nevo Davidβ€’2mo ago
Ok, it's building the docker few minutes πŸ™‚ @nithur you can take the new version
nithur
nithurβ€’2mo ago
wow, awesome working now Thank you so much @Nevo David for the effort πŸ‘
Nevo David
Nevo Davidβ€’2mo ago
Thank you so much for pushing me to find it haha
Support
SupportOPβ€’2mo ago
Hi @nithur this thread is closed for now, please open a new one if you need more help

Did you find this page helpful?