mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
default to json SDK authentication in the example (#21199)
This commit is contained in:
@@ -77,7 +77,7 @@ mutation {
|
||||
```js
|
||||
import { createDirectus, authentication, rest, login } from '@directus/sdk';
|
||||
|
||||
const client = createDirectus('directus_project_url').with(authentication()).with(rest());
|
||||
const client = createDirectus('directus_project_url').with(authentication('json')).with(rest());
|
||||
|
||||
// login using the authentication composable
|
||||
const result = await client.login(email, password);
|
||||
|
||||
Reference in New Issue
Block a user