# Unverified email address

Check that your app preserves the provider verification status. Email is reported as unverified. Sign in as `you+unverified@example.com` and check how your app handles the returned profile.

Use your own Mockatoo address with unverified and your usual password. Combine tags with a dot, for example `you+unverified.noname@example.com`; see [Email tags](../email-tags.md).

## What each provider returns

Email is reported as unverified.

| Provider | What your app gets |
| --- | --- |
| [Google](../providers/google.md) | The email is reported as unverified (email_verified: false). |
| [GitHub](../providers/github.md) | The primary email is unverified (verified: false in /user/emails). |
| [Discord](../providers/discord.md) | The email is unverified (verified: false in /users/@me). |
| [LinkedIn](../providers/linkedin.md) | The email is unverified: email_verified is "false" in the ID token and false in /v2/userinfo. |

## Test it with Playwright

This test signs in with Google as `you+unverified.unverified@example.com` and checks that your app completes sign in. It reads MOCKATOO_TEST_EMAIL and MOCKATOO_TEST_PASSWORD from the environment.

```ts
import { expect, test } from "@playwright/test";

const email = process.env.MOCKATOO_TEST_EMAIL ?? "";
const password = process.env.MOCKATOO_TEST_PASSWORD ?? "";

test("+unverified: keeps an unverified email unverified", async ({ page }) => {
	const address = email.replace("@", `+e2e-${crypto.randomUUID()}.unverified@`);
	// Sign-in is allowed, but an app must not treat this address as verified.
	await page.goto("/");
	await page.getByRole("button", { name: "Sign in with Google" }).click();
	await page.getByLabel("Email", { exact: true }).fill(address);
	await page.getByLabel("Password", { exact: true }).fill(password);
	await page.getByRole("button", { name: "Log in with password" }).click();
	await page.getByRole("button", { name: "Authorize" }).click();
	await expect(page.getByRole("heading", { name: "Your session" })).toBeVisible(
		{ timeout: 15_000 },
	);
	expect(
		JSON.parse((await page.locator("pre code").textContent()) ?? "").user,
	).toMatchObject({
		email: address,
		emailVerified: false,
	});
});
```

It runs in CI as [tests/tags/unverified.spec.ts](https://github.com/mockatoo/examples/blob/main/better-auth-next/tests/tags/unverified.spec.ts) in the Better Auth + Next.js example.
