We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Might be related to this one #3560
I want to obtain slack user token, not bot token
So when I trigger connection with the following code.
const connectSession = await createConnectSession.mutateAsync({ integrationId: selectedIntegration.id, }); new Nango({ connectSessionToken: connectSession.token, }) .auth( selectedIntegration.id, selectedIntegration.provider.id === 'slack' ? { authorization_params: { user_scope: // <---- supplying user scopes like this works 'channels:history,channels:read,channels:write,channels:write.topic,chat:write', }, user_scope: [ // <---- supplying user scopes like this does not works 'channels:history', 'channels:read', 'channels:write', 'channels:write.topic', 'chat:write', ], } : {}, ) .then((_result) => {
In Nango Console > Logs I see the following
This is the content of the failing log, with some data redacted.
{ "rawCredentials": { "authed_user": { "access_token": "access token", "scope": "channels:history,groups:history,im:history,mpim:history,channels:read,groups:read,im:read,mpim:read,reactions:read,reminders:read,team:read,users:read,users:read.email,users.profile:read,channels:write,chat:write,groups:write,im:write,im:write.topic,mpim:write,mpim:write.topic,reactions:write,reminders:write,users:write,users.profile:write,channels:write.topic,groups:write.topic", "id": "user id", "token_type": "user" }, "enterprise": null, "is_enterprise_install": false, "team": { "name": "Proxi", "id": "slack team id" }, "ok": true, "app_id": "my app id" }, "error": { "message": "An unhandled error of type 'incomplete_raw_credentials' with payload '{}' has occurred", "payload": {} } }
I tracked the issue down to this line.
Seems like parseRawCredentials expects to find access_token at the root, but it's under authed_user, i.e. authed_user.access_token.
parseRawCredentials
access_token
authed_user
authed_user.access_token
The text was updated successfully, but these errors were encountered:
NAN-2754 incomplete_raw_credentials is thrown on slack user_token
Sorry, something went wrong.
No branches or pull requests
Might be related to this one #3560
I want to obtain slack user token, not bot token
So when I trigger connection with the following code.
In Nango Console > Logs I see the following
This is the content of the failing log, with some data redacted.
I tracked the issue down to this line.
Seems like
parseRawCredentials
expects to findaccess_token
at the root, but it's underauthed_user
, i.e.authed_user.access_token
.The text was updated successfully, but these errors were encountered: