directus
This commit is contained in:
@@ -15,7 +15,7 @@ const client = createDirectus(DIRECTUS_URL)
|
||||
.with(authentication());
|
||||
|
||||
// Helper to authenticate if needed
|
||||
async function ensureAuthenticated() {
|
||||
export async function ensureAuthenticated() {
|
||||
if (DIRECTUS_TOKEN) {
|
||||
client.setToken(DIRECTUS_TOKEN);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user