# Building Passwordless Authentication with Stytch

DevFeed: [Building Passwordless Authentication with Stytch](<https://devfeed.tech/articles/building-passwordless-authentication-with-stytch-17845.md>)

Original publisher: [Read original article](<https://encore.dev/blog/stytch-auth-starter>)

Author: Ivan Cernja

Published: 2025-06-25T00:00:00Z

Content type: tutorial

Language: en

Sources: [Encore Updates](<https://devfeed.tech/sources/encore-updates.md>)

Topics: [Authentication](<https://devfeed.tech/topics/authentication.md>), [sessions](<https://devfeed.tech/topics/sessions.md>), [Secure token management](<https://devfeed.tech/topics/secure-token-management.md>)

Tags: [apis](<https://devfeed.tech/tags/apis.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [auth](<https://devfeed.tech/tags/auth.md>), [authentication](<https://devfeed.tech/tags/authentication.md>), [backend](<https://devfeed.tech/tags/backend.md>), [consumer](<https://devfeed.tech/tags/consumer.md>), [developer](<https://devfeed.tech/tags/developer.md>), [frontend](<https://devfeed.tech/tags/frontend.md>), [integration](<https://devfeed.tech/tags/integration.md>), [logic](<https://devfeed.tech/tags/logic.md>), [magic](<https://devfeed.tech/tags/magic.md>), [magic-link](<https://devfeed.tech/tags/magic-link.md>), [passwordless](<https://devfeed.tech/tags/passwordless.md>), [security](<https://devfeed.tech/tags/security.md>)

## AI overview

The tutorial outlines a passwordless authentication app using Stytch Consumer Authentication and email magic links. Users authenticate by clicking a link sent to their email; the app's frontend handles the returned token, while an Encore authentication service integrates with Stytch to verify sessions and extract user information. It distinguishes the public token for client-side operations from the secret key for server-side verification, which must not be exposed in client code. Stytch validates requests against authorized domains, so the redirect domain must be configured. The excerpt introduces the setup but omits implementation details and does not show the completed handler.

## Source excerpt

Add passwordless authentication to your applications with Stytch's magic links and enterprise-grade security