Skip to content

Use OAuth access token to make inference API calls #1217

@coyotte508

Description

@coyotte508

Add the option to use the oauth acces token instead of our secret token to make inference API calls when the user is logged in.

Note that currently an oauth access token has a duration of 8 hours, but we can extend it to 30 days if we want.

There's also a refresh token mechanism being worked on on hub's side, once that's done the access token can be refreshed. (When refreshing the token, we need to store the new refresh token, the old one becomes unusable)

The refresh token is valid for 3 months, and each renew/refresh makes is valid for another 3 months

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