@suluk/better-auth - v0.2.0
    Preparing search index...

    Function parseApiKeyMetadata

    • Safely parse key metadata, handling Better Auth's potential DOUBLE-stringification of the JSON field. Ported verbatim from saastarter metadata.ts:14-39 (the double-JSON.parse guard is load-bearing — without it a double-stringified blob silently reads as a string, not the object).

      Parameters

      • raw: unknown

      Returns ApiKeyMetadata | null