Skip to content

database.delete_refresh_token is not used #979

@ajzobro

Description

@ajzobro

We should identify where in the code we ought to be deleting refresh tokens as the currently the delete_refresh_token function from database as it is not used.

Presently we are simply relying on the TTL to expire:

    # Remove refresh tokens that haven't been accessed over 90 days
    mongo.db.refresh_tokens.create_index(
        "last_accessed", expireAfterSeconds=REFRESH_TOKEN_IDEL_EXPIRATION
    )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions