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: Error accessing cookies in fusionauth. If you are using SSR you must configure the SDK with a cookie adapter #177

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

TGTGamer
Copy link

What is this PR and why do we need it?

When using the next-client-cookies as per documentation, the nextCookieAdapter is not passed as it's not included in the config. This causes the coreSDK to fail to grab the cookies.

As the config object is using the SDKConfig and FusionAuthProviderConfig is expected, I've change the function parameter from config to props to pass the correct FusionAuthProviderConfig object forward.

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.

…must configure the SDK with a cookie adapter

When using the `next-client-cookies` as per documentation, the `nextCookieAdapter` is not passed as it's not included in the config. This causes the coreSDK to fail to grab the cookies. 

As the config object is using the `SDKConfig` and `FusionAuthProviderConfig` is expected, I've change the function parameter from `config` to `props` to pass the correct `FusionAuthProviderConfig` object forward.
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.

1 participant