https://www.prisma.io/ logo
Join SlackCommunities
Powered by
# prisma-whats-new
  • c

    cj

    07/13/2017, 7:00 PM
    have you been through this tutorial? https://www.graph.cool/docs/tutorials/react-apollo-auth0-pheiph4ooj/
  • j

    jbaudin

    07/13/2017, 7:00 PM
    Yes
  • j

    jbaudin

    07/13/2017, 7:00 PM
    But my scenario is not the same as the one here
  • j

    jbaudin

    07/13/2017, 7:01 PM
    I want my customers to sign up with their social accounts later in my flow for accessing features
  • c

    cj

    07/13/2017, 7:01 PM
    ok, so you have two options
  • c

    cj

    07/13/2017, 7:02 PM
    use exclusively auth0, which by defaults lets users signup using an email and password of their choosing
  • j

    jbaudin

    07/13/2017, 7:02 PM
    Using the auth0 modal displayed after calling lock.show()
  • j

    jbaudin

    07/13/2017, 7:02 PM
    Yes sure
  • c

    cj

    07/13/2017, 7:02 PM
    or to use http://prntscr.com/fvc5i2 and then use auth0 later on to allow them to attach their social accounts
  • j

    jbaudin

    07/13/2017, 7:03 PM
    Yes
  • j

    jbaudin

    07/13/2017, 7:03 PM
    Cleaner than what I was thinking to do at first :D
  • j

    jbaudin

    07/13/2017, 7:03 PM
    Thx for the support !
  • c

    cj

    07/13/2017, 7:04 PM
    no problem. glad I could help 🙂
  • g

    georgelam0306

    07/13/2017, 7:18 PM
    "WebSocket is closed before the connection is established." anybody else constantly have issues with their websocket connection?
  • c

    cj

    07/13/2017, 7:53 PM
    @georgelam0306 I think they are aware of the issue https://graphcool.slack.com/archives/C0MQJ62NL/p1499951461672950
    🙂 1
  • l

    louistm

    07/13/2017, 8:12 PM
    Is there a way to issue a GraphQL request from a browser that just returns the JSON instead of loading the playground?
    n
    • 2
    • 1
  • c

    cj

    07/13/2017, 8:23 PM
    @louistm graphql's payload and response are just json http://prntscr.com/fvd8vh
  • c

    cj

    07/13/2017, 8:23 PM
    http://prntscr.com/fvd969
  • l

    louistm

    07/13/2017, 9:06 PM
    What I want to be able to do is go into a browser, enter something like https://api.graph.cool/simple/v1/[my project key]/query=allAttractions?query=query%7BallAttractions%7Bname%7D%7D and have it return the JSON instead of opening the playground
    n
    • 2
    • 6
  • g

    georgelam0306

    07/13/2017, 9:28 PM
    anybody run into this: Error: GraphQL error: The provided idToken is invalid. Please see https://auth0.com/docs/tokens/id_token for how to obtain a valid idToken at new ApolloError (ApolloError.js:32) at QueryManager.js:119 at <anonymous>
    n
    • 2
    • 2
  • c

    cj

    07/13/2017, 9:43 PM
    @georgelam0306 yes, you need do the following: 1) Open your Auth0 console 2) Clients 3) Select a client 4) At the bottom, click "Advanced settings" 5) Under Oauth, change JsonWebToken Signature Algorithm to HS256
    ❤️ 1
  • g

    georgelam0306

    07/13/2017, 9:44 PM
    it works!
  • c

    cj

    07/13/2017, 9:52 PM
    @louistm in chrome, open the developer tools inspector and paste this code into the console https://gist.github.com/cj/da59049ba2f48e1cdc263f64f4e85b15 🙂
  • c

    cj

    07/13/2017, 9:52 PM
    @georgelam0306 sweet!
  • s

    samjbmason

    07/13/2017, 10:22 PM
    Im using the withApollo HOC when i submit a form to run some mutation, the problem is is that the data that is returned is not passed into my props, does anyone know how to access this data?
    n
    c
    d
    • 4
    • 15
  • a

    auser

    07/13/2017, 11:57 PM
    Soooo… in a request pipeline function, I see that data transformations are ignore. If this is the case, how can I store data from the external API on our object (

    http://d.pr/i/M5Nyny.png▾

    )
    a
    n
    • 3
    • 9
  • m

    mike.johnson

    07/14/2017, 12:29 AM
    is the best way to access the currently logged in user to always add a userQuery on each component that needs the current user?
    m
    • 2
    • 2
  • j

    johhansantana

    07/14/2017, 12:44 AM
    Question: I have my session token stored in a cookie, how do I check if that token is valid?
  • j

    johhansantana

    07/14/2017, 12:44 AM
    like how do I query a
    currentUser
  • j

    johhansantana

    07/14/2017, 12:50 AM
    https://www.graph.cool/docs/faq/graphcool-session-user-goij0cooqu/
1...268269270...637Latest