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]
signUpandsignInWithOtpno longer returndata.verifyOtp. CallverifyOtpto complete verification - [Changed]
auth.detectSessionInUrlis on by default and restores the session after a redirect. Set it tofalseto turn that off - [Changed] Change the password with
updateUser.resetPasswordForOldis no longer available - [Changed]
signInWithCustomTicketnow takes{ ticket }.signInWithOpenIdnow takescodeandappId.signInWithPhoneAuthnow takesphoneCodeandappId - [Removed]
toDefaultLoginPage,refreshUser, anddeleteUserare removed, along with the Node.js methodsgetUserInfo,getEndUserInfo,queryUserInfo, andgetClientIP - [Added]
signInWithSSO,exchangeCodeForSession, andauth.mfa
See Version migration to move from v3 to v4.