Skip to content

Move caching logic into oauthdb.getClientInfo #9516

@data-sync-user

Description

@data-sync-user

In lib/senders/oauth_client_info.js we currently have some caching logic wrapped around a call to oauthdb.getClientInfo, to avoid hitting the oauth-server db every time we want to look up basic oauth client metadata.

As seen in mozilla/fxa-auth-server#2985, we're growing additional calls to oauthdb.getClientInfo that would also benefit from this caching, but don't get it.

Let's move the caching logic down into oauthdb.getClientInfo or some low-level wrapper around it, so it can be shared by more components.

┆Issue is synchronized with this Jira Task

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