Skip to content

v1.0.0-canary.3

Pre-release
Pre-release
Compare
Choose a tag to compare
@kmjennison kmjennison released this 17 Dec 22:11
· 76 commits to main since this release

Changes

  • Don't throw errors during ID token verification or refresh
    • Handle more token errors by @HofmannZ in #365
    • Remove thrown errors from token refresh & verification by @kmjennison in #368. This adds onVerifyTokenError and onTokenRefreshError handlers to the config.
  • Allow rendering while redirecting to app by @abusada in #375. This adds a whenAuthedBeforeRedirect option to withAuthUser.
  • Allow easy error handling for login/logout requests by @kmjennison in #376. This adds onLoginRequestError and onLogoutRequestError handlers to the config.
  • Support application default credentials for by @prescottprue in #359
  • Fix peer dependency range syntax for firebase-admin by @kmjennison in #357
  • Launch v1.x live demo app
  • Change example app cookies to use SameSite=Lax by @kmjennison in #360

Thank you to these contributors!

Breaking

  • Minor breaking change: withAuthUserTokenSSR and withAuthUserSSR will no longer throw errors when there are unexpected problems refreshing or verifying the user's ID token. Instead, they will render with an unauthenticated user. To handle errors in a different way, add handlers onVerifyTokenError and onTokenRefreshError to your config.

New Contributors