Skip to main content

Building an authentication flow

Deck provides three ways to authenticate your users to their data sources.

Auth SDK

A drop-in UI component provided by Deck. Get started quickly while simplifying auth handling and MFA flows.

Custom UI

Build a custom auth flow using the Deck API. Take complete control of your experience.

Headless

Authenticate programmatically without user interaction. Also works on sources that do not require credentials.

How Deck authenticates users

1

User provides credentials

Your user enters their credentials to authenticate with their data source.
2

Credentials sent to Deck

Credentials are securely transmitted to Deck for authentication.
3

Deck authenticates with data source

Deck establishes a connection with the data source on behalf of your user, handling MFA if required.
4

Access token delivered via webhook

Once authentication succeeds, Deck sends an access_token to your webhook endpoint.
5

Run jobs with access token

Use the access_token to run jobs and access data on behalf of your user.