import { getKeyValueStore } from "../kv.js";
import { DEFAULT_USER_EXPIRES_IN_MS } from "../user/index.js";
export const DEFAULT_CREDENTIAL_EXPIRES_IN_MS = DEFAULT_USER_EXPIRES_IN_MS;
const STORE_NAME = "userCredential";
export function getUserCredentialStore(userId) {
    return getKeyValueStore(STORE_NAME, {
        counter: false,
        // Partition by userId
        prefix: `userId::${userId}::`
    });
}
//# sourceMappingURL=store.js.map