Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose factory from Vue SDK #133

Merged
merged 1 commit into from
Jun 20, 2024

Conversation

JakeLo123
Copy link
Collaborator

@JakeLo123 JakeLo123 commented Jun 18, 2024

What is this PR and why do we need it?

#104
This is to expose the createFusionAuth--factory previously not an exported member of the module. This will make the plugin more flexible in terms of how users want to instantiate it.

This makes it possible to instantiate fusionauth outside of the plugin, passing in the instance. See #104 for the original suggestion.

We'll follow this up with a README update to include an example, but it shouldn't be merged until the next version is released. PR Here

Testing
You should be able to import createFusionAuth from the module. This PR adds an example of how to set up a nuxt plugin with the factory, if you'd like to try--though it's not necessarily in the scope of this PR) Here's the nuxt app I've been using.

This is not a nuxt-specific change, just something that is probably only helpful to nuxt users.

Pre-Merge Checklist (if applicable)

  • Unit and Feature tests have been added/updated for logic changes, or there is a justifiable reason for not doing so.

@JakeLo123 JakeLo123 added the Vue label Jun 18, 2024
@JakeLo123 JakeLo123 self-assigned this Jun 18, 2024
@JakeLo123 JakeLo123 linked an issue Jun 18, 2024 that may be closed by this pull request
@JakeLo123 JakeLo123 force-pushed the 104-vuenuxt-expose-plugin-instancefactory branch from f173271 to a431246 Compare June 18, 2024 20:46
@JakeLo123 JakeLo123 force-pushed the 104-vuenuxt-expose-plugin-instancefactory branch from a431246 to 25c6797 Compare June 18, 2024 21:18
@JakeLo123 JakeLo123 requested a review from BriDavidson June 18, 2024 21:19
@JakeLo123 JakeLo123 merged commit cda9268 into main Jun 20, 2024
3 checks passed
@JakeLo123 JakeLo123 deleted the 104-vuenuxt-expose-plugin-instancefactory branch June 20, 2024 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Vue][Nuxt] Expose plugin instance/factory
3 participants