search

Home  >  Q&A  >  body text

javascript - QQ third-party login problem

When requesting the qq login interface to obtain access_token, the address parameter that jumps back will be followed by a # sign. In this case, I cannot use nodejs's req.query.access_token to get this parameter. This is the case in the developer documentation. That said, how do I remove the # number

?

If the user allows authorization, successfully jump to the specified redirect_uri, add "#" after the URL, and bring Access Token, expires_in and other parameters. If there is already a "#" sign after the redirect_uri address, add an "&" sign and bring the corresponding return parameters. For example, the callback address is: www.qq.com, it will jump to:

http://www.qq.com/?#access_token=YOUR_ACCESS_TOKEN&expires_in=3600
漂亮男人漂亮男人2782 days ago858

reply all(1)I'll reply

  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-05-24 11:40:43

    Which document are you looking at?

    reply
    0
  • Cancelreply