-
Notifications
You must be signed in to change notification settings - Fork 399
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
Error when using app in another workspace #494
Comments
We really need more info to help you here.
For what API calls? I'm not sure where you're now but generally speaking, a Slack app that is available for multiple workspaces should have its own database to store bot/user tokens per workspace. Picking up the right token for an incoming request by implementing |
@seratch everything is currently in memory and since I'm running the app locally there is no state for either of my workspaces. In the app_home_opened event I'm calling |
Your app needs to have |
@seratch I implemented the |
Found my problem, I was still passing my original botToken from my .env file and not the new botToken from the workspace where the app was installed. I didn't understand that each workspace gets a different botToken for the same app |
Good to know you've figured out the cause! |
Hi, can you please tell me how to get the new botToken from workspace where the app was installed. |
I created a 2nd workspace to test deploying my app. I enabled public distribution, but didn't go through the entire submit process. When I run the oAuth flow to install the app I can pick my 2nd workspace and the app seems to install with a warning that it hasn't been reviewed. When I try to interact with the app I get a 'invalid
user_id
errorIs the problem that the app hasn't been submitted for review? Or do I need to do something different when installing the app to another workspace?
Sorry if this is the wrong place to ask this question.
What type of issue is this? (place an
x
in one of the[ ]
)Requirements (place an
x
in each of the[ ]
)The text was updated successfully, but these errors were encountered: