Better Auth v1.8.0-beta.2

v1.8.0-beta.2Pre-release
Added 1
  • consentReferenceId in the OAuth provider now receives the request and the user's choice
Changed 10
  • Zoom profile types now include the phone number, WeChat, and Alipay login types (11, 21, and 23)
  • Google profile type now reflects optional ID token claims and treats an absent email verification claim as unverified
  • Hugging Face organization profile types are aligned, with organization roles as strings and securityRestrictions replacing the deprecated SSO and MFA flags
  • Kakao profile kakao_account is now optional and consent scopes are separated with commas in authorization requests
  • Kick profile user_id is now a number instead of a string
  • LinkedIn profile locale type is corrected to accept language tags such as en-US
Fixed 1
  • Roblox stored images are preserved when a Roblox avatar is missing and profile updates are enabled

From Better Auth

[!IMPORTANT] Action required

  • If your Zoom profile mappings use exhaustive login-type checks, update them to handle the login types 11, 21, and 23. (#11850)

  • fix(vk)!: correct profile phone number type (#11849)

    VK profile callbacks now accept phone numbers as strings. Profile mappings must treat user.phone as a string instead of a number.

  • If you use Naver profile mappings, update them to handle omitted personal fields and supply an email when Naver does not share one. (#11858)

  • If you use Kakao profile mappings, update them to handle a missing kakao_account. (#11857)

  • If you use Roblox profile mappings, update them to handle optional scoped fields, a null picture, and unknown custom claims. (#11866)

  • fix(linkedin)!: correct profile locale type (#11844)

    LinkedIn profile callbacks now accept locale language tags such as en-US. Profile mappings must read locale as a string instead of a country/language object.

  • If your Google profile mappings rely on ID token claims such as email verification, update them to handle claims that are now optional. (#11847)

  • fix(huggingface)!: align organization profile types (#11845)

    Hugging Face profile mappings must iterate over organization arrays and can read optional plan and security restrictions. Organization roles are strings; use securityRestrictions instead of the deprecated SSO and MFA flags.

  • If you use mapProfileToUser with Polar, update it to read the scoped, nullable userinfo claims instead of the previous user profile fields. (#11840)

  • If you use custom Kick profile mappings or getUserInfo callbacks, update them to treat KickProfile.user_id as a number instead of a string. (#11841)

@better-auth/core
❗ Breaking Changes
  • Fixed GoogleProfile to reflect Google's optional ID token claims and to treat an absent email verification claim as unverified (#11847)
  • fix(huggingface)!: align organization profile types (#11845)
  • Fixed Kakao profiles to make KakaoProfile.kakao_account optional and to separate consent scopes with commas in authorization requests, as Kakao documents (#11857)
  • Fixed KickProfile.user_id to be a number instead of a string (#11841)
  • fix(linkedin)!: correct profile locale type (#11844)
  • Fixed NaverProfile.response to make personal profile fields optional, matching what Naver may omit (#11858)
  • Fixed Polar accounts to be identified by their userinfo subject and exposed the scoped, nullable userinfo claims in mapProfileToUser instead of unrelated user profile fields (#11840)
  • Fixed Roblox userinfo types so scoped RobloxProfile fields are optional, picture can be null, and custom claims are unknown, and preserved stored images when a Roblox avatar is missing and profile updates are enabled (#11866)
  • fix(vk)!: correct profile phone number type (#11849)
  • Fixed Zoom profile types to include the phone number, WeChat, and Alipay login types (11, 21, and 23) (#11850)

For detailed changes, see CHANGELOG

@better-auth/oauth-provider
Features
  • feat(oauth-provider): give consentReferenceId the request and the user's choice (#11967)

For detailed changes, see CHANGELOG

Contributors

Thanks to everyone who contributed to this release:

@bytaesu, @gustavovalverde

Full changelog: v1.8.0-beta.1...v1.8.0-beta.2

View original

Upgraded? How did it go?

Discussion