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

fix: incorrect type checking #40

Merged
merged 1 commit into from
Jan 4, 2024

Conversation

DanielRivers
Copy link
Collaborator

Issue:

#39

With the release of 0.1.5 additional type checking were added. Issue with this check was that it mismatched the types handled by the Kinde TS SDK.

An exception was added with the type was not a string, but this is breaking the auth flow entirely.

Solution:

Update the memorySession store to match the type of the Kinde TS SDK for setSessionItem so instead of using the type string, use unknown. (https://github.com/kinde-oss/kinde-typescript-sdk/blob/0239214067fb170336a8b845e4a89f1b6bc9c7aa/lib/sdk/session-managers/BrowserSessionManager.ts#L44)

@DanielRivers
Copy link
Collaborator Author

@danielroe This could do with a urgent review, 0.1.5 was breaking.

This module needs tests...

@danielroe danielroe merged commit e8c0618 into nuxt-modules:main Jan 4, 2024
1 check passed
@danielroe
Copy link
Collaborator

Yes, we do need tests!

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