Skip to content

Conversation

MaloLebrin
Copy link
Contributor

@MaloLebrin MaloLebrin commented Jan 30, 2025

This feature allows to define in the configuration (nuxt.config.ts) a default token in the same way as the url. When this token is defined, and the value of the authentication cookie is falsy then this token is used for authentication to strapi

Types of changes

  • Bug fix (a non-breaking change which fixes an issue)
  • New feature (a non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Description

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes (if not applicable, please state why)

…uthentication token

This feature allows to define in the configuration (nuxt.config.ts) a default token in the same way as the url.
When this token is defined, and the value of the authentication cookie is falsy then this token is used for authentication to strapi
Copy link

netlify bot commented Jan 30, 2025

Deploy Preview for nuxt-strapi-module ready!

Name Link
🔨 Latest commit f20644b
🔍 Latest deploy log https://app.netlify.com/sites/nuxt-strapi-module/deploys/67bc6eea2e0695000888902f
😎 Deploy Preview https://deploy-preview-459--nuxt-strapi-module.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@MaloLebrin
Copy link
Contributor Author

MaloLebrin commented Feb 23, 2025

@benjamincanac @ChristopheCVB Do you have any questions or comments for this PR ?

@benjamincanac benjamincanac changed the title feat(useStrapi): define in the configuration a default value for an authentication token feat(module): add token option to be used as fallback Feb 24, 2025
@benjamincanac benjamincanac merged commit 6eaa30f into nuxt-modules:dev Feb 24, 2025
5 checks passed
@MaloLebrin MaloLebrin deleted the feat-define-in-the-configuration-a-default-value-for-an-authentication-token branch June 19, 2025 07:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants