Hi there! I'm having trouble with scopes while usi...
# javascript
j
Hi there! I'm having trouble with scopes while using slack as an auth provider
Copy code
const { user, session, error } = await supabase.auth.signIn({
        provider: 'slack',
      }, {
        scopes: 'team:read'
      })
the url has a query param that looks like
scope=profile+email+openid+team%3Aread&user_scope=
where as the slack app dashboard provides one that looks like
scope=chat%3Awrite%2Cusers%3Aread%2Cteam%3Aread
when I delete
profile+email+openid+
from the url slack auth works. Is there someway I can modify the url generated before opening the new oauth browser window, or where does this code live, maybe there is a param I can add/modify? ** but when I remove those then the actual signup doesn't work because the request doesn't include access to email
s
I am also having this issue and get the exact same result.
My scopes are
channels:read users:read identity team:read usergroups:read
@Jono Were you able to figure anything out?
j
No sorry 😦
l
@stnmonroe @Jono Im running into the same issue! Did either of you manage to figure out a workaround?
s
I am moving to using Slack's API directly and recording the necessary credentials only accessible server-side to store their sensitive oauth data. So just avoiding it completely at this point.