> ## Documentation Index
> Fetch the complete documentation index at: https://docs.typewise.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Authentication

> Understand how magic link and Google sign-in work, session management, and security features

Typewise uses passwordless authentication. You log in either with a magic link
sent to your email address or with **Continue with Google**.

![Login page with the email field and Continue with Google](https://mintcdn.com/typewise/E0zZS_tgkeivoFXe/images/documentation/settings/authentication/login-screen.png?fit=max\&auto=format\&n=E0zZS_tgkeivoFXe\&q=85\&s=4e3bdacb7e10b3208f1a622c71de6f30)

***

## How Magic Links Work

When you log in to Typewise, a time-limited authentication link is sent to your
email. Clicking the link verifies your identity and creates a secure session.

**1. Enter your email**

Go to the [Login page](https://platform.typewise.app) and enter your email
address.

**2. Check your inbox**

A login link is sent to your email. The link is valid for **24 hours**.

**3. Click the link**

Clicking the magic link authenticates you and creates a session in your
browser.

> [!NOTE]
>
> Invitation links sent to new users are also valid for **24 hours**. If an
> invitation expires, the user can request a new magic link from the Login page.

## Sign in with Google

If your Typewise account uses the same email address as your Google account, you
can log in with Google instead of waiting for a magic link.

**1. Click Continue with Google**

On the [Login page](https://platform.typewise.app/login), click **Continue
with Google**.

**2. Choose your Google account**

Google asks which account to use. Pick the one with your work email address.

**3. Return to Typewise**

Typewise logs you in and creates the same session as a magic link.

* Typewise matches your account by the verified email address of your Google
  account
* On the Login page, Google only logs in existing users. If no account has that
  email address, you are asked to sign up first
* If your Google Workspace administrator has blocked Typewise, sign-in with
  Google fails and you can log in with a magic link instead

### Sign up with Google

On the [Signup page](https://platform.typewise.app/signup), **Continue with
Google** creates your account:

* If nobody at your company uses Typewise yet, Typewise creates a new company on
  a trial, with you as its admin
* If your company's email domain already has an admin, Typewise shows your
  company instead. Click **Request access** and your admins are notified to add
  you
* Addresses from free email providers (such as Gmail) always get a new company

## Session Duration

After logging in, your session remains active for **7 days**. Each time you open
the platform, the session is renewed for another 7 days, so it only expires
after 7 days without using Typewise.

* Opening the platform renews the session for 7 days
* You can log out manually at any time, which immediately ends your session
* After logout or session expiry, log in again with a magic link or with Google

## Two-Factor Authentication

Typewise inherits two-factor authentication from your email provider. Since
magic links are sent to your email, anyone accessing the link must first
authenticate with your email account.

> [!TIP]
>
> If your email account is protected with 2FA (e.g., Google Workspace, Microsoft
> 365\), accessing your Typewise magic link requires passing that 2FA check
> first. This provides enterprise-grade security without additional
> configuration.

If you sign in with Google, Typewise relies on your Google account instead:
Google's own sign-in, including its 2FA, protects your Typewise login.

For maximum security, ensure all team members have two-factor authentication
enabled on their email and Google accounts.

## Access Revocation

When an administrator removes a user from the platform via
[User Management](https://docs.typewise.app/documentation/settings/user-management.md), the user loses
access on their next interaction with the platform.

* The user's account is deleted from the system
* Their existing browser session is invalidated on the next request
* Any attempt to access the platform after removal results in automatic logout

> [!NOTE]
>
> Users are not immediately disconnected mid-session. Access is revoked when
> they next interact with the platform, at which point authentication fails and
> they are logged out.

## Security Features

Typewise implements several security measures to protect your account:

| Feature | Description |
| - | - |
| Cryptographic signing | All magic link tokens are cryptographically signed to prevent tampering |
| HttpOnly cookies | Session cookies cannot be accessed by JavaScript, protecting against XSS attacks |
| Secure cookies | Cookies are only transmitted over HTTPS in production |

## See also

* [User Management](https://docs.typewise.app/documentation/settings/user-management.md): Add, edit, and
  remove users
* [Context Variables](https://docs.typewise.app/documentation/settings/context-variables.md): Declare
  context variables used by actions and lookups


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.