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

    dankent

    08/21/2017, 12:41 PM
    Apparently you need to revert to auth0-js v7 if you want to use HS256 tokens, as per a comment here: https://github.com/graphcool/feature-requests/issues/145
  • j

    joar

    08/21/2017, 1:17 PM
    I would strongly advise against auth0 in react native projects. Very very little support from the auth0 team for RN libs. auth0 native lock for example cannot be customised whatsoever, not even with your own logo. I ended up reverting the whole integration and rolling my own
    πŸ‘ 1
  • j

    joar

    08/21/2017, 1:18 PM
    No support for social connections either, unless you’re using Lock.
  • d

    dankent

    08/21/2017, 1:25 PM
    I use auth0 in react native - I just use a webview to show the standard auth0 web authentication page and then intercept the return URL to get the token
  • d

    Daniel K.

    08/21/2017, 1:25 PM
    I agree with @joar ... much better alternative is imo Firebase, I've successfully implemented social logins with React Native
  • j

    joar

    08/21/2017, 1:26 PM
    @dankent I considered doing something similar but I dont know, felt like a hack.
  • d

    Daniel K.

    08/21/2017, 1:26 PM
    also if you can, use Expo SDK which allows to use native sign in for Facebook/Google
  • j

    joar

    08/21/2017, 1:26 PM
    We use schema extensions for social login now. Complete 100% control inhouse, works really well
    πŸ’― 1
    πŸ‘ 2
  • d

    Daniel K.

    08/21/2017, 1:27 PM
    @dankent obvious disadvantage of webview is that user has to sign in again into browser if he is not yet
  • d

    Daniel K.

    08/21/2017, 1:28 PM
    I have my Firebase auth with Graphcool example here if someone is interested : https://gist.github.com/FredyC/e9c79301761859c111b9b1ff6880ff0e
  • n

    nreid

    08/21/2017, 1:41 PM
    @nilan, is this tutorial still valid? https://auth0.com/blog/building-an-instagram-clone-with-graphql-and-auth0/
    d
    • 2
    • 3
  • j

    jvbianchi

    08/21/2017, 8:25 PM
    I'm trying to use
    subscriptions-transport-ws
    , but I got this error:
    Copy code
    WebSocket connection to '<wss://subscriptions.us-west-2.graph.cool/v1/_PROJECT_ID>' failed: WebSocket is closed before the connection is established.
    a
    n
    • 3
    • 8
  • n

    nguyendanhson1989

    08/22/2017, 7:55 AM
    it.only('Login-Access by Productivity Coach', async function () { this.timeout(300000); await chromeless.goto('https://app.stage.saleshood.com/') .type('xxxxx', 'input[name="user[login]"]') .type('xxxxx, 'input[name="user[password]"]') .click('input[type="submit"]') .wait(10000) .wait('.current-user-avatar') .click('/html/body/div[2]/div[1]/div/div[2]/ul/li[2]/ul/li[4]/a[href="https://saleshoodqa.saleshood.com/auth/logout"]') await chromeless.end() });
  • n

    nguyendanhson1989

    08/22/2017, 7:55 AM
    -------------------------------
  • n

    nguyendanhson1989

    08/22/2017, 7:55 AM
    Error: click(): node for selector /html/body/div[2]/div[1]/div/div[2]/ul/li[2]/ul/li[4]/a[href="https://saleshoodqa.saleshood.com/auth/logout"] doesn't exist at LocalRuntime.<anonymous> (node_modules\chromeless\dist\src\chrome\local-runtime.js23335) at step (node_modules\chromeless\dist\src\chrome\local-runtime.js3223) at Object.next (node_modules\chromeless\dist\src\chrome\local-runtime.js1353) at fulfilled (node_modules\chromeless\dist\src\chrome\local-runtime.js458) at <anonymous>
  • n

    nguyendanhson1989

    08/22/2017, 7:56 AM
    Does anybody can help me to check it
  • g

    greatscot

    08/22/2017, 8:15 AM
    Hi all, I have a React component (wrapped by an apollo data provider), which I want to display some user info. Ideally, I want it to display info of the currently logged in user by default, but if I supply an
    id
    , then I'd like it to get the user info of that user. I haven't been able to figure out how to get the logic into my frontend (bit of a noob), but wonder if I could have a resolver function which returns currently-logged-in user by default, but allows me to pass an user id argument to get different user info? If this is possible - is it a bad idea?
    d
    • 2
    • 15
  • d

    Daniel K.

    08/22/2017, 9:05 AM
    @nguyendanhson1989 how is this Graphcool related question? this is no "help me write my app" chat πŸ˜‰
  • n

    nguyendanhson1989

    08/22/2017, 9:07 AM
    i'm using chromeless
  • d

    Daniel K.

    08/22/2017, 9:12 AM
    @nguyendanhson1989 and that means? it's not related to Graphcool, are you sure you are on the right Slack ? πŸ™‚
  • n

    nilan

    08/22/2017, 9:13 AM
    @Daniel K. he is πŸ™‚
  • d

    Daniel K.

    08/22/2017, 9:14 AM
    ok πŸ™Š
  • n

    nguyendanhson1989

    08/22/2017, 9:15 AM
    @Daniel K., are you one of the hosts of this Slack
  • d

    Daniel K.

    08/22/2017, 9:16 AM
    host? nah, I am just lurking around πŸ˜„
  • n

    nguyendanhson1989

    08/22/2017, 9:17 AM
    ok
  • y

    yolen

    08/22/2017, 12:36 PM
    Dear all. What is the graphql counterpart of SQL DISTINCT? I.e. list the distinct values. Example lets say I have three nodes [{'brand':'nike'},{'brand':'nike'},{'brand':'adidas'}]. I need a query returning the brands in my database i.e. 'nike' and 'adidas'
    d
    d
    • 3
    • 22
  • p

    Pieter

    08/22/2017, 1:07 PM
    quick question, what DB is graph.cool using under the hood?
    n
    • 2
    • 2
  • p

    Pieter

    08/22/2017, 1:07 PM
    and are there plans to maybe look at edgedb.com?
  • p

    Pieter

    08/22/2017, 1:08 PM
    GraphQL is cool, but there are some limitations when using a generic backend
  • j

    joar

    08/22/2017, 1:12 PM
    @Pieter You really think GraphCool should migrate to a DB which has literally zero production mileage? πŸ˜› Sounds like a recipe for disaster
1...314315316...637Latest