08. June 2021
Ally breaking changes + Facebook driver
Breaking changes
Since @adonisjs/ally@4.0.0
both AllyUserContract.avatarUrl
and AllyUserContract.email
might be null
New Ally drivers are being added to the core and some driver users don’t have email and avatar. That’s why it might end up being not existing
There might be cases where code needs to be updated checking for non-existing values
Added support for Facebook social authentication
It’s also now possible to use Facebook as Ally social auth driver 🎉
const facebookUser = await ally.use('facebook').user()
if (!facebookUser.email) {
// Added check for missing email
}
if (!facebookUser.avatarUrl) {
// Added check for missing avatar
}