Coder Social home page Coder Social logo

Comments (10)

JasonBoy avatar JasonBoy commented on September 11, 2024

@Nomia thanks for try it,
I will take a look, and will add this config asap if necessary. I didn't consider the conditions on open.weixin.qq.com 😭
Or maybe you can send a PR to fix it 😄

from wechat-jssdk.

Nomia avatar Nomia commented on September 11, 2024

thx for the quick reply :> @JasonBoy

from wechat-jssdk.

JasonBoy avatar JasonBoy commented on September 11, 2024

@Nomia use wx.oauth.generateOauthUrlByScope(myRedirectUrl, scope), use 2rd scope param to pass your own "snsapi_login", use returned oauth url instead of the default wx.oauth.snsUserInfoUrl,
pls take a look for the change to see if it meets your needs

from wechat-jssdk.

JasonBoy avatar JasonBoy commented on September 11, 2024

your are using 2.x, right?

from wechat-jssdk.

Nomia avatar Nomia commented on September 11, 2024

yep, "2.1.0"

from wechat-jssdk.

Nomia avatar Nomia commented on September 11, 2024

thx, I'll give it a try :>

from wechat-jssdk.

Nomia avatar Nomia commented on September 11, 2024

I think it'll work just fine. I'm waiting for the npm package update :P

from wechat-jssdk.

JasonBoy avatar JasonBoy commented on September 11, 2024

@Nomia Merged, try v2.2.0 now

from wechat-jssdk.

Nomia avatar Nomia commented on September 11, 2024

Great, never thought so fast, thx~

from wechat-jssdk.

JasonBoy avatar JasonBoy commented on September 11, 2024

Can I close this now? or you are still debugging?

from wechat-jssdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.