Standard schema for the token payload
Optionalname: stringOptional name for the serializer
const tokenBodySchema = z.object({}).passthrough(); // or build token payload schema
const zodTokenCacheMapSchema = z.map(z.string(), z.object({expires: z.number().optional(), data: tokenBodySchema})); // or build token payload schema
const bufferSerializer = buildTokenCacheBufferSerializer(zodTokenCacheMapSchema);
Build IPersistSerializer for caching valid tokens in a binary raw format.