Skip to content

Garbage-collect expired authorization codes #8

Description

@roborourke

Authorization codes are stored as post meta on the client and are only ever removed when successfully exchanged or explicitly invalidated (e.g. a failed PKCE check, see #1). A code nobody redeems — abandoned flow, code the user never used — sits in post meta forever. Not a security issue on its own, but unbounded growth on every active client.

Needs a scheduled cleanup (e.g. WP-Cron) that deletes `oauth2_authcode*` meta past its expiration.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions