Skip to main content

Changelog

[4.1.0]​

Authentication now uses the GoTrue client through app.auth(). PostgreSQL, cloud storage, cloud functions, and realtime follow the same usage as v3 PG mode.

  • [Changed] The login identifier is an email address or a phone number. Password sign-in no longer accepts username
  • [Changed] signUp and signInWithOtp no longer return data.verifyOtp. Call verifyOtp to complete verification
  • [Changed] auth.detectSessionInUrl is on by default and restores the session after a redirect. Set it to false to turn that off
  • [Changed] Change the password with updateUser. resetPasswordForOld is no longer available
  • [Changed] signInWithCustomTicket now takes { ticket }. signInWithOpenId now takes code and appId. signInWithPhoneAuth now takes phoneCode and appId
  • [Removed] toDefaultLoginPage, refreshUser, and deleteUser are removed, along with the Node.js methods getUserInfo, getEndUserInfo, queryUserInfo, and getClientIP
  • [Added] signInWithSSO, exchangeCodeForSession, and auth.mfa

See Version migration to move from v3 to v4.