Skip to content

Usage of DIRECTUS_PUBLIC_TOKEN for generateDirectusTypes #64

@joggienl

Description

@joggienl

I noticed that generateDirectusTypes is using the DIRECTUS_PUBLIC_TOKEN to get the type definition file.

As per documentation of the directus-sdk-typegen, the token must be a token with administrator permissions, the token for the public role is not suited for that.

I've seen it in astra, svelte and the nextjs cms starter frontend.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions