Skip to content

Can you explain the, "After redirect, Check state and code values then call" #6

@JeanHules

Description

@JeanHules

I am a little confused on the documentation.

Currently, I have:

` var config = {
client_id: 'xxxxxx.xxxx',
client_secret: 'zzzzzzzz',
redirect_uri: 'http://localhost:8010',
authParams : {
client_id: 'xxxxxxxx.xxxx',
scope: 'channels:write',
redirect_uri: 'http://localhost:8010',
team: 'teamname',
}
}

slackSvc.authorize(config.client_id, config.authParams, function (response) {
console.log(resposne)
});

slackSvc.oauth.access(config.client_id, config.client_secret, code, function (response) {
console.log(response)
if(response.ok){
//optional : preload you token for further requests
slackSvc.InitToken(response.access_token);
}
});
`

After doing this, it does prompt me with the Slack list of groups and the Authorize Button, but once I click that, I am brought to my callback uri for a brief second, then back to the Slack Auth page.

Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions