# v0.4.0: Phone Authentication

> The version 0.4.0 adds the ability to sign-in using a Phone number, and adds design and usability improvements to the authentication pages

*Published: 2022-09-19*
*Canonical: https://makerkit.dev/blog/changelog/update-0.4.0*

---

The new version 0.4.0 dropped some more cool stuff, such as:

- ✅ **Phone number** authentication 🚀
- ✅ Ability to **link a phone number** once signed up
- ✅ Ability to **update a phone number** from the profile page
- ✅ Authentication pages design overhaul
- ✅ Added **dynamic sign-in/up page** based on configuration
- ✅ Added oAuth providers logos

Let's take an in-depth look!

## Phone Number Authentication

We can easily add phone number authentication by tweaking the global
configuration:

```tsx
auth: {
  providers: {
    emailPassword: false,
    phoneNumber: true,
    emailLink: false,
    oAuth: [GoogleAuthProvider],
  },
},
```

And the result will be the below:

{% video src="/assets/images/posts/phone-number-auth.mp4" /%}

Once enabled, we will be able to tweak the configuration in multiple places,
such as the `Authentication` tab:

{% img alt="Auth providers linking" src="/assets/images/posts/auth-providers-linking.webp" width="1167" height="994" /%}

Additionally, the phone number can be added or removed from the user's
profile page:

{% video src="/assets/images/posts/add-remove-phone-number.mp4" /%}

## Dynamic Auth Configuration

By tweaking our global configuration, we can easily choose the
authentication providers we want to use. For example, by choosing the below,
we will enable `Email Link authentication`, `Google Auth` and `Facebook Auth`:

```tsx
auth: {
  providers: {
    emailPassword: false,
    phoneNumber: true,
    emailLink: true,
    oAuth: [GoogleAuthProvider, FacebookAuthProvider],
  },
},
```

{% img src="/assets/images/posts/dynamic-auth-config-example.webp" width="2336" height="1980" alt="Dynamic Auth configuration" /%}

### Updating your Makerkit codebase

To update your Makerkit codebase, run the following command:

```
git pull upstream main --allow-unrelated-histories
```

And then, solve the conflicts you will likely encounter.

🎉 That's it for version 0.4.0. Time to update your applications!
