Add facebook driver and allow email and avatarUrl to be null
Breaking change
As we are adding new drivers, the possibility of email not being available is increasing. Hence, we must update the AllyUserContract
to have email as null
as well.
This does require a small change in your application codebase and you must guard yourself for missing email
const facebookUser = await ally.use('facebook').user()
if (!facebookUser.email) {
// handle the use case
}