• r

    rp

    2 months ago
    Also, if you scroll up on this thread, you will find there is a repo that has remix + supertokens support
  • Contrebande

    Contrebande

    2 months ago
    Thanks ! I will check it out! I will let you know of specific questions.
  • XxX_MLG Noob_XxX

    XxX_MLG Noob_XxX

    2 months ago
    Just checking to see if there's still interest in this: https://github.com/supertokens/supertokens-node/pull/348. I think I addressed all the comments.
    XxX_MLG Noob_XxX
    r
    3 replies
    Copy to Clipboard
  • r

    rp

    2 months ago
    Yes! I'll come around to checking it out sometime today / tomorrow. Thanks
  • r

    rp

    2 months ago
    Did you see if the remix session refreshing works?
  • XxX_MLG Noob_XxX

    XxX_MLG Noob_XxX

    2 months ago
    Yes! Session refreshing seems to be working fine now! Thanks for the helpful tip about using the correct route. I am able to see that the session refresh works on navigation if the access token is removed. I'm also able to see the "Token Theft" error if the same token is used twice. I pushed my latest changes, but I want to clean a few pieces of the code up. The only thing I need to do now is add
    supertokens-website
    to
    root
    (for JS users). But I'm also playing with the idea of just storing complex forms in
    localStorage
    . This is because if the user is working with a complex form and somehow ends up refreshing the page, I'd still want their data to be there. So
    localStorage
    would theoretically solve both the navigation problem and the refresh problem for JS users. Don't know how I feel about that yet, though.
  • r

    rp

    2 months ago
    This is because if the user is working with a complex form and somehow ends up refreshing the page, I'd still want their data to be there. So localStorage would theoretically solve both the navigation problem and the refresh problem for JS users. Don't know how I feel about that yet, though. Hmm. Very interesting idea. This would solve both the issue indeed. Maybe creating a generic solution for this for forms would be good cause otherwise you would have to have this logic for every form on the website.
  • r

    rp

    2 months ago
    I pushed my latest changes, but I want to clean a few pieces of the code up. Would you mind if we add an integration guide for remix in our docs pointing to your repo?
  • XxX_MLG Noob_XxX

    XxX_MLG Noob_XxX

    2 months ago
    Yes, you are correct! I'm trying to think of a reusable
    React Hook
    or
    React Action
    that I could create for forms for this purpose. This would make things much easier, as it would prevent code duplication.
  • r

    rp

    2 months ago
    Makes sense!!