• is

    is

    9 months ago
    Hi there, I'm trying to build an app from the ground up and I'm wondering: in which part of development should supertokens be integrated? Should i start with a supertokens implementation and then build around that?
  • r

    rp

    9 months ago
    hey @User you should start with supertokens and build on top of that.
  • r

    rp

    9 months ago
    Since I assume you will have to build a bunch of APIs that can be accessed post login. In which case, it's better to have the auth layer of the app already ready.
  • is

    is

    9 months ago
    Ok thanks
  • ?

    user

    9 months ago
    Hi, I've just found out about supertokens. Is there a recipe/example usage of the library with graphql?
  • ?

    user

    9 months ago
    I've been looking around and the examples and docs that I found are kind of outdated
  • r

    rp

    9 months ago
    hey @User there isn't an example for graphql at the moment. But we will work on one soon. In summary, you want to add a middleware that does session verification using our
    verifySession
    function and then fetch the user ID from that and attach it to the graphql context.
  • r

    rp

    9 months ago
    @User, we will have a graphql example within a few days.
  • ?

    user

    9 months ago
    Thanks, @rp . That's great to know
  • is

    is

    9 months ago
    whats the best way to hide the signout button from the user if theyre not signed in?