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

BA-1390: sync cookie retrieval #95

Merged
merged 1 commit into from
May 21, 2024

Conversation

anicioalexandre
Copy link
Collaborator

@anicioalexandre anicioalexandre commented May 16, 2024

  • authentication package update - v 2.2.0

    • The useJWTUser hook now uses getUser function to retrieve the user's data. The noSSR option is set to false by default, which allows cookies to be retrieved right away on the server, but also forces the Next.js page to be dynamically rendered.
    • The getUser is no longer an async function or returns awaits for the getToken return.
    • The withUser is no longer an async function or returns awaits for the getUser return.
  • utils package update - v 2.3.0

    • Add cookie management functions like getCookie. It can optionally enable cookies retrieval on the server side. By doing so, it will force the Next.js page to be dynamically rendered.
    • The getToken function now uses getCookie function and it no longer returns a promise nor needs to be waited/resolved.
    • The baseAppFetch function can now optionally throw api errors if throwError option is set to true. It is enabled by default.
  • graphql package update - v 1.1.1

    • connectionParams function on the wsClient is now sync and don't wait for the getToken response.
  • config package update - v 2.1.4

    • Ignore global-require rule.

Copy link

changeset-bot bot commented May 16, 2024

⚠️ No Changeset found

Latest commit: 681eace

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@anicioalexandre anicioalexandre force-pushed the BA-1390-sync-cookie-retrieval branch from 95605c0 to 2dc7b5d Compare May 17, 2024 12:14
@anicioalexandre anicioalexandre force-pushed the BA-1390-sync-cookie-retrieval branch from 2dc7b5d to 40701d1 Compare May 21, 2024 12:18
@anicioalexandre anicioalexandre force-pushed the BA-1390-sync-cookie-retrieval branch from 40701d1 to 681eace Compare May 21, 2024 12:50
@anicioalexandre anicioalexandre merged commit b735020 into master May 21, 2024
5 checks passed
@anicioalexandre anicioalexandre deleted the BA-1390-sync-cookie-retrieval branch May 21, 2024 13:42
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.

5 participants