Skip to content

Use refresh tokens for OAuth #1377

@nsarrazin

Description

@nsarrazin

Currently we use long-lived sessions that get extended when the user performs an action. In order to better manage sessions, we could switch to an OAuth flow where we have a short lived session with an access token cookie and a refresh token that we can use to refresh the sessions, since HuggingFace now supports refresh tokens.

We would probably need to make this flow opt-in in the config as I'm not sure every oauth provider supports this ?

relevant: #1365 (review)
cc @coyotte508 if you have any resources on how to implem this, I've never done it before 👀

Metadata

Metadata

Assignees

No one assigned

    Labels

    backThis issue is related to the Svelte backend or the DBenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions