Skip to content

v1.7.0

Compare
Choose a tag to compare
@github-actions github-actions released this 09 Sep 19:39
· 15 commits to main since this release

1.7.0 (2024-09-09)

Bug Fixes

  • add debug logs for experimental feature (41ef1df)
  • #242: use TextEncoder when mapping token to UInt8Array (23b04dc), closes #242
  • #246: re-throw invalid PKCS8 error as AuthError with user-friendly message (a7d7a22), closes #246
  • #249: merge error stack trace in token verifier to improve visibility on fetch errors (6bce756), closes #249
  • add missing name property to decoded id token type (39b086d)
  • pass cookie serialization options to cookie setter (b28ce7a)
  • recreate canary tags after force push (c9b7c18)
  • semantic-release rate exceeded error (676b602)
  • semantic-version git history issue (d514f57)
  • update next.js peer dependency to rc (f2953fd)

Features

  • middleware: introduced redirectToPath method and RegExp support in redirectToLogin method (21024bb)
  • added path option to redirectToHome helper function (54f07f4)
  • allow setAuthCookies to accept custom auth headers or fall back (b1d169b)
  • experimental option to refresh token on expired kid header (2869531)
  • introduced refreshCookiesWithIdToken function to enable login using Server Actions (#212) (6cd0b13)
  • next.js 15 rc support (a994dd0)
  • pass custom auth header from authMiddleware (71286af)
  • getTokens: introduced optional cookieSerializeOptions option (e041542)
  • replaced no matching kid auth error with invalid token error (9d2d0fc)
  • support Node.js 22 (6c7f435)