Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# nuxt-directus

A [Nuxt](https://nuxtjs.org/) module for integrating the [Directus](https://directus.io/) API (including an authentication middleware)

Updated to use the REAL directus sdk
---

[![MIT license](https://img.shields.io/github/license/pnodev/nuxt-directus.svg)](https://github.com/pnodev/nuxt-directus/blob/master/LICENSE)
Expand Down
4 changes: 2 additions & 2 deletions lib/plugin.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import DirectusSDK from '@directus/sdk-js';
import {Directus} from '@directus/sdk';
import Vue from 'vue';
import jwtDecode from 'jwt-decode';
import createAuthRefreshInterceptor from 'axios-auth-refresh';
Expand All @@ -24,7 +24,7 @@ export default async (ctx, inject) => {
}
ctx.store.registerModule('auth', authModule, opts);

const directus = new DirectusSDK(options.apiUrl, {
const directus = new Directus(options.apiUrl, {
auth: {
storage: {
getItem: (key) => {
Expand Down
34 changes: 21 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"prettier": "^2.1.2"
},
"dependencies": {
"@directus/sdk-js": "^9.0.0-rc.30",
"@directus/sdk": "^9.0.0-rc.83",
"axios-auth-refresh": "^3.1.0",
"jwt-decode": "^3.1.2"
}
Expand Down