Skip to content
New issue

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

auth方法中的参数code是什么? #1

Open
t2krew opened this issue Mar 3, 2015 · 3 comments
Open

auth方法中的参数code是什么? #1

t2krew opened this issue Mar 3, 2015 · 3 comments

Comments

@t2krew
Copy link

t2krew commented Mar 3, 2015

duoshuo.auth(code, function(err,token){
  console.log(token)
  // to sth with token    
});

参数code是什么来的?

@t2krew t2krew changed the title auth方法中的code参数是什么? auth方法中的参数code是什么? Mar 3, 2015
@SunPeter
Copy link

SunPeter commented Mar 4, 2015

同问

@guo-yu
Copy link
Member

guo-yu commented Mar 6, 2015

是 oauth2 返回到 callback uri 的 code,在 query string 中

@xiaoyang4011
Copy link

大神能否详细写下demo,好多地儿看不懂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants