Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Davor Grubelić
    @dgrubelic
    so, i found out that this url: https://signup.utopian.io/auth/callback?code=11 which is accepting code parameter from github is having redirect
    therealwolf
    @therealwolf42
    redirect before closing?
    Davor Grubelić
    @dgrubelic
    and it is redirecting to https://signup.utopian.io/?code=11
    therealwolf
    @therealwolf42
    could this be a nginx problem?
    Davor Grubelić
    @dgrubelic
    yes, and before library can receive code
    probably..
    do you do server side rendering ?
    basically, what you should to in ca se of SPA is to always respond with application code from server
    for example, in nodejs world, you have something like this: https://www.npmjs.com/package/express-history-api-fallback
    this library makes sure that, which ever link you enter, you get your application
    client application
    maybe you don't have to setup your callback url to /auth/callback..
    maybe set it up to be /
    therealwolf
    @therealwolf42
    Okay - I think I do SSR - at least I build through npm run build. But I just started last year with Javascript so I'm getting used to all of it.
    Ehm, the api backend receives the request and then returns it
    but I guess not before the redirect
    I've implemented the backend api into an already existing framework, so I'm not sure in which way your package would work with that - but this is really interesting!
    I don't have access right now to the server, but my guess is that it doesn't even get to the point, so it has to be somekind of nginx redirect
    Davor Grubelić
    @dgrubelic
    this line check if redirectUri matches url on which Github redirects you
    you setup your redirectUri to be: ${process.env.ROOT_PATH}/auth/callback
    but, since on that route you have redirect and app lands on${process.env.ROOT_PATH}/ nothing happens
    therealwolf
    @therealwolf42
    oh but do you know what causes this redirect?
    Davor Grubelić
    @dgrubelic
    this is why popup is not closed and auth is not completed
    therealwolf
    @therealwolf42
    ah
    Davor Grubelić
    @dgrubelic
    your backend
    therealwolf
    @therealwolf42
    i see
    but it works in development mode with the same backend
    Davor Grubelić
    @dgrubelic
    maybe your backend is configured differently in development mode
    i don't know
    therealwolf
    @therealwolf42
    okay I will see why that happens - haven't coded the backend
    I mean the main parts
    Davor Grubelić
    @dgrubelic
    i have tested this library on many cases, and usually it happens that it is problem with implementation code, not the library itself :(
    but i can't help you with that bacause i don't know your backend
    you can reach out here anytime you need help
    therealwolf
    @therealwolf42
    don't worry - you helped me a lot. A big thanks to you!
    By the way - what I'm programming is the account creation for something called Utopian - which is Github build on the blockchain, which rewards Open Source Contributions

    There is already an account creation but this is through another interface of the blockchain.

    Nevertheless, you might want to check it out: utopian.io :)

    Davor Grubelić
    @dgrubelic
    will do..
    therealwolf
    @therealwolf42
    (I'm just a developer helping out on utopian, so don't worry - just thought you'd might appreciate it)
    Umar Draz
    @umardraz
    Hello
    for this vue-authenticate what passports npm i need to install on my express backend
    Edan Weis
    @edanweis
    Until the readme is updated, where can I see a full example of vue-authenticate?
    Florence Comajes
    @renztoygwapo
    Hello, Guys I am using vue-authenticate on social networks
    I am now get stuck on getting the data back in the redirectUrl
    I am currently using adonis as a api only
    𝓒𝑦𝔞𝔫𝔦𝔡𝔢
    @Cynede_twitter
    hi!
    is it possible / hard to replcae in minimal user/password server api
    Ayden
    @WeeHong
    Hi guysd.