> **Description:** Explore detailed guides that illustrate the main login flows and their implementation patterns.

# How the Login API works

The Login API enables users to authenticate with your service using their Vipps or MobilePay account. This section provides step-by-step visual guides showing how users experience different login flows.

## Available flows

### [Login from mobile](https://developer.vippsmobilepay.com/docs/APIs/login-api/how-it-works/login-from-mobile.md)

Learn how users authenticate when accessing your website or app from their mobile device. This flow includes automatic app-switching and streamlined authentication for mobile users.

### [Login from desktop](https://developer.vippsmobilepay.com/docs/APIs/login-api/how-it-works/login-from-desktop.md)

Understand the desktop login experience where users enter their phone number on a landing page and confirm the login on their mobile device using a challenge number.

### [Merchant-initiated login](https://developer.vippsmobilepay.com/docs/APIs/login-api/how-it-works/merchant-initiated-login-howitworks.md)

Discover how merchants can initiate login requests directly to a user's device using their phone number, enabling seamless authentication for in-store and customer club scenarios.

## What you'll learn

Each guide walks through:

- The complete user journey from start to finish
- Key steps in the authentication process
- Alternative flows for returning users
- Optional features like marketing consent collection
- Email verification requirements

Choose the flow that matches your integration scenario to see detailed illustrations and explanations of the user experience.

Try it out in the [demo store](https://demo.vipps.no/login).

> **Full site overview:** For every page in this documentation, read [https://developer.vippsmobilepay.com/llms.txt](https://developer.vippsmobilepay.com/llms.txt).
