Remembering users for 30 days

Options
jackb
jackb Member

What's the best way to implement remembering a user for 30 days when they check the box 'Remember me for 30 days' upon login?

Is it as simple as updating the authorization token's expiration to 30 days in the login endpoint? Anything else to consider?

Jack

Best Answer

  • Pawel Magdanski
    Pawel Magdanski Member ✭✭✭
    Answer ✓
    Options

    Hi, that depends on your solution but if your whole user auth relies only on Xano token then making it last 30 days and checking it for expiration on front-end should be enough.