# Authentication

PocketBlocks provides a huge list of authentication options. If you can use it in [Pocketbase](https://pocketbase.io/), you can use it in PocketBlocks.

## Enable Authentication Options

By default authentication with username and email is enable.

<figure><img src="https://3954266794-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdzgVkwpxTMW0dI30zZ8Y%2Fuploads%2Fgit-blob-9e4d38488bc50ad64758217c9d67005645d9aecb%2F08.png?alt=media" alt=""><figcaption></figcaption></figure>

To allow users to authenticate with **OAuth providers**, go to the Pocketbase Admin Panel, **Settings** in the side menu, select **Auth providers**, and configure some of the options available.

<figure><img src="https://3954266794-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdzgVkwpxTMW0dI30zZ8Y%2Fuploads%2Fgit-blob-6da00dab025bc7869367597b6c4bc4933c29e85a%2F14.png?alt=media" alt=""><figcaption></figcaption></figure>

## Signup

By default, anyone can sign up. To disable the signup page (and feature), create a rule with restrictions.

<figure><img src="https://3954266794-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdzgVkwpxTMW0dI30zZ8Y%2Fuploads%2Fgit-blob-2b92d8eac3ceb7019460b61a2309d689b95392cf%2F02.png?alt=media" alt=""><figcaption></figcaption></figure>

## Customization

You can customize some aspects of the authentication page. Go to **PocketBlocks Settings** Page then go to **Authentication**:

<figure><img src="https://3954266794-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdzgVkwpxTMW0dI30zZ8Y%2Fuploads%2Fgit-blob-e8e94a70d408ee664fbd3caef1196f6c5cd2a4bb%2F03.png?alt=media" alt=""><figcaption></figcaption></figure>

You can change the username input label and apply a mask by selecting the **Local** login type option:

<figure><img src="https://3954266794-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdzgVkwpxTMW0dI30zZ8Y%2Fuploads%2Fgit-blob-6d1bdc1416a20648eb2e129c55298cd63e6ed340%2F04.png?alt=media" alt=""><figcaption></figcaption></figure>

You also can change the name of an OAuth provider and its icon by selecting the respective login type option:

<figure><img src="https://3954266794-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdzgVkwpxTMW0dI30zZ8Y%2Fuploads%2Fgit-blob-bbeb42f8dd816aa9028a05adeb8698e55d1b2031%2F05.png?alt=media" alt=""><figcaption></figcaption></figure>

## Email Features

To enable password recovery and email verification/change, you need to configure a **SMTP Server** in PocketBase Admin Panel:

<figure><img src="https://3954266794-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdzgVkwpxTMW0dI30zZ8Y%2Fuploads%2Fgit-blob-74a672cf5c5a92a2653fc3176b31e0f6c822621b%2F06.png?alt=media" alt=""><figcaption></figcaption></figure>
