• r

    rp

    6 months ago
    Yea! Now I do. hehe
  • samurize

    samurize

    6 months ago
    😁
  • amarwavare

    amarwavare

    6 months ago
    This is how I got to know and came here through website ! 😅
  • kurzhai

    kurzhai

    6 months ago
    Hi everyone 👋 Currently checking out supertokens to use passwordless auth in a flutter app. Judging from the docs there is no ready-made library for that (the one in the repository seems to be outdated https://pub.dev/packages/supertokens)
  • kurzhai

    kurzhai

    6 months ago
    So my question is - to use supertokens with flutter I only have to implement OpenAPI spec for the frontend driver interface by sending regular HTTP requests? https://supertokens.com/docs/community/apis#frontend-driver-interface
  • r

    rp

    6 months ago
    Yes correct. However, it’s a little tricky since you have to take into considerations race conditions when calling the refresh API. Which is why we made the frontend SDK in the first place
  • r

    rp

    6 months ago
    If you’d like to, you can contribute the flutter SDK to make it up to date. By taking the vanilla JS (supertokens-website) or supertokens-react-native SDK as a reference
  • kurzhai

    kurzhai

    6 months ago
    You mean race conditions that can happen by sending refresh token multiple times as talked about here?

    https://youtu.be/6Vzit514kZY?t=747

  • r

    rp

    6 months ago
    Yes. Exactly
  • kurzhai

    kurzhai

    6 months ago
    in the video it is mentioned that a refresh token tree can be maintained on the backend - is that how supertokens works or should I wait on the front-end to get exactly one new token? Effectively pausing all consequent requests until I get the new token?