# Creating and managing apps

Create an app for Sign in with Prodmail, set its callback URLs and icon, regenerate its secret, and test a sign-in.

Apps live under Settings, Your apps in Prodmail. Any account can create up to 10.

## Creating an app

Create app takes three steps.

1. **App name.** People see it on the sign-in page: "Sign in to continue to Your App". A name can't include "Prodmail".
2. **App settings.** Choose the type of app and add a callback URL.
   - **Web app:** runs on a server that can keep a secret. It gets a client secret.
   - **Native or browser app:** mobile, desktop or single-page. It has no secret and relies on PKCE alone.
   The type can't be changed after the app is created.
3. **Keys.** Your client ID and, for a web app, your client secret. Save the secret now: we keep only a fingerprint of it, so it is not shown again.

## Callback URLs

After sign-in, people are sent to one of your app's callback URLs and nowhere else.

- The `redirect_uri` in your request must match one of them exactly, character for character.
- They must start with `https://`. For development, `http://localhost` and `http://127.0.0.1` are allowed, with any port.
- An app can have up to 10. Add or remove them on the Settings tab.

## Settings

The Settings tab holds what people see on the sign-in page: the icon, name and description, and optional links to your terms of service and privacy policy.

The icon is a PNG, JPEG or WebP image of up to 256 KB. Without one, the sign-in page shows your app's initial.

## Keys

The Keys tab shows your client ID and the discovery address. The client secret is never shown again after it is made. If it is lost or leaks, choose Regenerate: you get a new one, and the old one stops working at once.

## Testing

The Test tab builds a real sign-in address for your app: pick a callback URL and the scopes, and it fills in fresh PKCE values, `state` and `nonce`. Open sign-in runs it. The tab also shows the code verifier and a ready `curl` command for exchanging the code, so you can complete the flow by hand before writing any code.

## Deleting an app

Delete app on the Settings tab stops every sign-in through it at once, and removes it from the list of connected apps in people's accounts. It can't be undone.
