Comments (3)
This is currently only explicitly mentioned in the SDK reference https://docs.directus.io/packages/@directus/sdk/auth/functions/authentication.html#parameters, the referred link is the http api reference which does contain sdk usage examples for the corresponding http api call but is not a reference for the SDK itself.
Having said that i will do a small docs tweak to explicitly use 'json'
in the example.
from directus.
As described in the response description:
Note: if you used cookie as the mode in the request, the refresh token won't be returned in the JSON.
The SDK defaults to cookie
mode (it is the HTTP API itself referred to as defaulting to json
not the new sdk) so the refresh_token
is stored in a cookie instead of returned in the API response in this example.
from directus.
It seems like it was not stated in the docs that the Directus SDK defaults to 'cookie' mode. I had assumed that 'json' mode was the default considering the API documentation mentioning so:
'mode'
Whether to retrieve the refresh token in the JSON response, or in a 'httpOnly' 'secure' cookie. One of 'json', 'cookie'. Defaults to 'json'.
from directus.
Related Issues (20)
- list-o2m cannot display the inner related collection properly HOT 2
- Internal Rate Limiter not working HOT 1
- snapshot hangs the whole server for ~5 mn. HOT 1
- autoRefresh timer stop on page reload or new route HOT 5
- Turning off Nullable drops Default Value in schema settings HOT 6
- Directus all API endpoints are returning 404 error HOT 3
- In a image field an svg file will show as unsupported. HOT 2
- Issues with using custom migrations, date sequence clashes with directus migrations HOT 2
- Media / Files uploaded with tus protocol breaks the upload functionality HOT 1
- After upgrading from 9.26.0 to 10.13.1, WYSIWYG toolbar more than 1 line is hidden by default HOT 2
- ID field missing in Flow webhook payload when creating new M2M item HOT 5
- Deleting a folder which contains a folder will throw an Unexpected error.
- errors.SERVICE_UNAVAILABLE upload assets HOT 1
- "Disable editing value" prevents also creation of value HOT 8
- Installation of directus according to the documentation results in error caused by node-gyp (gyp issue) HOT 2
- Collection Item Dropdown support choose multiple items
- AxiosError: Network Error HOT 2
- Add documentation for STORAGE_<LOCATION>_CREDENTIALS
- There is a caching issue when using Roles & Permissions for different users HOT 1
- Versioning does not seem to affect many-to-any fields (at least when queried through the REST API) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from directus.