# 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="/files/QhKTP4DmoGqp9eNNgqbm" 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="/files/qOwPu4zjzputn47oyhYm" 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="/files/TcRLYTTd0HypSV8rKgoc" 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="/files/J0mTuIJaK3s8HGcQ2HvA" 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="/files/uPFpPSnVjJM464sq2JjD" 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="/files/uAPtpVlBZosS73KefdY5" 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="/files/LFYRAjIbgmemdw9jeuQ2" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://pocketblocks.pedroza.dev/workspace-management/auth.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
