Skip to content

Supplying slack user scopes via user_scope is not working #3560

Open
@almeynman

Description

@almeynman

As a workaound I supplied user_scope via authorization_params

      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) => {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions