Hiyve Components - v1.0.0
    Preparing search index...

    Options for useHiyveCourseStorage.

    interface UseHiyveCourseStorageOptions {
        isProviderTrusted?: (providerId: string) => boolean;
        location?: string;
        userId: string;
    }
    Index

    Properties

    isProviderTrusted?: (providerId: string) => boolean

    Which providers this user accepts courses from. An enrollment is only trusted when the provider it names wrote it; this narrows it further — for example to the providers the user already works with. The id arrives in its cleaned form (what cleanUserId from @hiyve/core returns), so compare against cleaned ids. Everyone is accepted by default, which lets anyone who can share a file with this user put a course in front of them — set this in any app where that matters. A new function on a later render is used from then on; the storage itself stays the same.

    location?: string

    Folder to keep course documents in. Defaults to /Courses.

    userId: string

    The signed-in user.