-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add nuxt to devdependencies #125
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some typescript compile errors. Requesting to fix those before merging please!
packages/sdk-vue/src/types.ts
Outdated
@@ -54,10 +54,10 @@ export interface FusionAuthConfig { | |||
onAutoRefreshFailure?: (error: Error) => void; | |||
|
|||
/** | |||
* Pass in `useCookie` from nuxt/app [useCookie](https://nuxt.com/docs/api/composables/use-cookie). | |||
* Pass in `useCookieType` from nuxt/app [useCookie](https://nuxt.com/docs/api/composables/use-cookie). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment shouldn't be changed because the thing they need to pass in is still called useCookie
@@ -1,5 +1,5 @@ | |||
import { Ref } from 'vue'; | |||
import { UseCookie } from './createFusionAuth/NuxtUseCookieAdapter'; | |||
import { useCookie as useCookieType } from 'nuxt/app'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need to import as
here because there's no name collision in this file.
What is this PR and why do we need it?
This PR adds
nuxt
to thedevDependencies
to give users the true type definition ofuseCookie
fromnuxt
instead of describing the type ourselves.Pre-Merge Checklist (if applicable)