Skip to content

[x-license] Expose license decode logic #19024

@oliviertassinari

Description

@oliviertassinari

Summary

The license key decode function is duplicated 3 times in the codebase, proof: https://github.com/search?q=org%3Amui+%22if+%28key+%3D%3D%3D+%27LM%27%29+%7B%22&type=code. It's too brittle. We should be able to share the logic.

  • Expose license decode logic
  • Replace duplicate code with it

Examples

No response

Motivation

Related to #9346

Search keywords: -

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope: x-licenseChanges related to @mui/x-license.type: new featureExpand the scope of the product to solve a new problem.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions