Skip to content

Move caching logic into oauthdb.getClientInfo #448

@rfk

Description

@rfk

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
┆Issue Number: FXA-641

Metadata

Metadata

Assignees

No one assigned

    Labels

    OrphanedTemporary label for transitioning to jira cloudfxa-auth-server

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions