Discover the latest updates.
Full Changelog: https://github.com/nuxt-community/strapi-module/compare/v1.3.2...v1.4.0
defu
default import after v6 upgrade (97dcc4e)Full Changelog: https://github.com/nuxt-community/strapi-module/compare/v1.3.1...v1.3.2
Full Changelog: https://github.com/nuxt-community/strapi-module/compare/v1.3.0...v1.3.1
getProviderAuthenticationUrl
fails to concat with prefix by @benjamincanac in 2f087f1
70f73af
Full Changelog: https://github.com/nuxt-community/strapi-module/compare/v1.2.0...v1.3.0
qs
by @larbish in #212@nuxt/module-builder
by @benjamincanac in #214Full Changelog: https://github.com/nuxt-community/strapi-module/compare/v1.1.0...v1.2.0
useStrapiGraphQL
composableFull Changelog: https://github.com/nuxt-community/strapi-module/compare/v1.0.0...v1.1.0
Old documentation for nuxt 2 module available at https://strapi-v0.nuxtjs.org/
Full Changelog: https://github.com/nuxt-community/strapi-module/compare/v0.3.4...v1.0.0
The module has been rewritten with TypeScript and using Siroc as bundler.
This PR also add a properties into the module to configure the session:
export default { strapi: { key: 'strapi_jwt', expires: 'session', cookie: {} }}
key
String
'strapi_jwt'
Key used for the cookie name as well as LocalStorage/SessionStorage key.
expires
String
or Number
or 'session'
When expires === 'session'
, the sessionStorage will be used to act like the cookie.
Otherwise, the value is a string, it will be parsed using ms, ex: expires: '7d'
A number can also be provided as milliseconds, ex: expires: 7 * 24 * 3600 * 1000
It would be possible also to configure during runtime the expiration, example:
if (form.rememberMe) { this.$strapi.options.expires = 31 * 24 * 3600 * 1000; // Only number is possible}await this.$strapi.login({ identifier: '...', password: '...' })
cookie
Object
{}
Options to forward to the cookie#options module, the expires
property will be overwritten.
Resolved #70
$strapi
also include .original
to list the error code, resolves #89Learn more at https://strapi.nuxtjs.org
#68 Prevent user fetch on server with target static
userUpdated
hook$strapi.user
on client-side hydratationprocess.env.STRAPI_URL
in production without having to run nuxt build
โจ (4442467)fetchUser
now uses correct methodThe official version is out โจ
Read more on https://strapi.nuxtjs.org