• b

    bossbaby84

    1 year ago
    receiving below error after the setup #3(Nextjs) :: Unhandled Runtime Error Error: SuperTokens must be initialized before calling this method. What could I missing here
  • r

    rp

    1 year ago
    @User , you must call the supertokens.init (from the node SDK) in all your API functions that use any function to do with supertokens.
  • ?

    user

    1 year ago
    Hi, with supertokens Flutter, i am following the example but i am not quite sure how to login.. as for the example:
  • ?

    user

    1 year ago
    Futurevoid login() async { try { final response = await superTokensHttpClient.post(Uri.parse("$baseURL/login")); print(response.body); return; } catch (e) { throw e; } }
  • ?

    user

    1 year ago
    but no body, nothing? How this login works? Could not find this info on the api reference either
  • r

    rp

    1 year ago
    hey @User , which version of the core are you using? And what backend framework are you using? Also, apologies for the lack of docs for flutter.. it's in our backlog of todos
  • r

    rp

    1 year ago
    In general, the way the sessions works is that on the backend, you will have to integrate our SDK and use the
    createNewSession
    function in your login API. This function in turn will attach cookies to the response which the flutter interceptor will handle.
  • ?

    user

    1 year ago
    Oh i see, i´ll have to talk to the backend team then, lol.. thanks agains!
  • ?

    user

    1 year ago
    Hii everyone
  • r

    rp

    1 year ago
    hey!