You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently facing difficulties storing the token from the oauth process using the @slack/oauth "installationStore" functionality. The problem is that when saving the installation in our db (using storeInstallation) we want to properly relate this data to a specific customer account. We pass the customer account info in the "metadata" and it's available in the installOptions which is currently NOT being passed into the storeInstallation call. Why is that and would you consider a PR for changing this and also passing the installOptions?
(In the success callback it is supplied as an argument, so I'm thinking I'll try as a workaround to just set storeInstallation to a function that returns a resolved promise and then do my storing in the success callback instead.)
What type of issue is this? (place an x in one of the [ ])
bug
enhancement (feature request)
question
documentation related
testing related
discussion
Requirements (place an x in each of the [ ])
I've read and understood the Contributing guidelines and have done my best effort to follow them.
This is a very reasonable request. I agree we should add metadata to installation, or offer a different way to extend the installation object. I've marked this as a enhancement for now.
seratch
added a commit
to seratch/node-slack-sdk
that referenced
this issue
Mar 10, 2021
team_id, scopes, and user_scopes in InstallURLOptions are already in the installation data too. I don't think there are possible use cases where developers need to know redirect_uri when storing an installation.
For this reason, I think we can simply have metadata as an optional value in Installation interface data. Here is a pull request resolving this issue: #1187
Description
I'm currently facing difficulties storing the token from the oauth process using the @slack/oauth "installationStore" functionality. The problem is that when saving the
installation
in our db (usingstoreInstallation
) we want to properly relate this data to a specific customer account. We pass the customer account info in the "metadata" and it's available in theinstallOptions
which is currently NOT being passed into thestoreInstallation
call. Why is that and would you consider a PR for changing this and also passing theinstallOptions
?(In the success callback it is supplied as an argument, so I'm thinking I'll try as a workaround to just set
storeInstallation
to a function that returns a resolved promise and then do my storing in the success callback instead.)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: