Skip to content

Commit baf4d0f

Browse files
authored
Merge branch 'appwrite:main' into accelerator-blog
2 parents 50cbe87 + f1fefbb commit baf4d0f

File tree

8 files changed

+151
-11
lines changed

8 files changed

+151
-11
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"optimize": "node ./scripts/optimize-assets.js",
2525
"optimize:all": "node ./scripts/optimize-all.js"
2626
},
27-
"packageManager": "pnpm@10.11.1",
27+
"packageManager": "pnpm@10.12.1",
2828
"dependencies": {
2929
"h3": "^1.14.0",
3030
"posthog-js": "^1.210.2",

pnpm-lock.yaml

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/app.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,8 @@
1313
type="font/woff2"
1414
crossorigin
1515
/>
16-
1716
%sveltekit.head%
1817
</head>
19-
2018
<body class="dark group/body antialiased" data-sveltekit-preload-data="hover">
2119
<script>
2220
// Theme

src/hooks.server.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ const securityheaders: Handle = async ({ event, resolve }) => {
5454
'https://*.reo.dev',
5555
'https://plausible.io',
5656
'https://js.zi-scripts.com',
57-
'https://ws.zoominfo.com'
57+
'https://ws.zoominfo.com',
58+
'https://*.cookieyes.com',
59+
'https://cdn-cookieyes.com'
5860
]),
5961
'style-src': "'self' 'unsafe-inline'",
6062
'img-src': "'self' data: https:",
@@ -77,15 +79,18 @@ const securityheaders: Handle = async ({ event, resolve }) => {
7779
'https://js.zi-scripts.com',
7880
'https://aorta.clickagy.com',
7981
'https://hemsync.clickagy.com',
80-
'https://ws.zoominfo.com '
82+
'https://ws.zoominfo.com ',
83+
'https://*.cookieyes.com',
84+
'https://cdn-cookieyes.com'
8185
]),
8286
'frame-src': join([
8387
"'self'",
8488
'https://www.youtube.com',
8589
'https://status.appwrite.online',
8690
'https://www.youtube-nocookie.com',
8791
'https://player.vimeo.com',
88-
'https://hemsync.clickagy.com'
92+
'https://hemsync.clickagy.com',
93+
'https://cdn-cookieyes.com'
8994
])
9095
};
9196

src/lib/components/FooterNav.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@
9191
rel: 'noopener noreferrer'
9292
},
9393
{ label: 'Contact us', href: '/contact-us' },
94-
{ label: 'Assets', href: '/assets' }
94+
{ label: 'Assets', href: '/assets' },
95+
{ label: 'Security', href: '/docs/advanced/security' }
9596
]
9697
};
9798
</script>

src/routes/+layout.svelte

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,15 @@
148148
<svelte:window on:scroll={handleScroll} />
149149
<svelte:head>
150150
{#if !dev}
151+
<!-- Start cookieyes banner -->
152+
<script
153+
defer
154+
id="cookieyes"
155+
type="text/javascript"
156+
src="https://cdn-cookieyes.com/client_data/7d0de7a43cc518960906cf03/script.js"
157+
></script>
158+
<!-- End cookieyes banner -->
159+
151160
<!--suppress JSUnresolvedLibraryURL -->
152161
<script defer data-domain="appwrite.io" src="https://plausible.io/js/script.js"></script>
153162

Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
---
2+
layout: post
3+
title: "Secure, scalable e-commerce: How Appwrite makes authentication easy"
4+
description: Learn how Appwrite simplifies secure, scalable authentication for e-commerce platforms.
5+
date: 2025-06-23
6+
cover: /images/blog/how-appwrite-makes-auth-easy-for-ecommerce/cover.png
7+
timeToRead: 6
8+
author: laura-du-ry
9+
callToAction: true
10+
unlisted: true
11+
category: product
12+
---
13+
14+
Building an e-commerce platform today is more than just creating a catalog and checkout flow. Security, user experience, and scalability are critical, and authentication sits right at the heart of it all. Whether you're launching a small boutique or scaling a global marketplace, handling authentication correctly can make or break your app.
15+
16+
At Appwrite, we believe authentication should be powerful but painless. Let's walk through how Appwrite helps you manage user [authentication](/products/auth) for e-commerce projects, without adding complexity.
17+
18+
# Why Authentication matters in E-Commerce
19+
20+
Authentication is more than a login screen. It's about creating trust.
21+
22+
- **Security**: Protect users' personal and payment information.
23+
- **Conversion**: A seamless sign-up and login flow can significantly reduce cart abandonment.
24+
- **Compliance**: Meet privacy regulations like GDPR and CCPA with minimal effort.
25+
- **Personalization**: Give customers a tailored experience once they're logged in.
26+
27+
Bad authentication experiences can lead to lost sales, security breaches, and broken trust. That's why it needs to be first-class from day one. Here are some [auth best practices](/post/guide-to-user-authentication) to follow to secure your app and improve user experience.
28+
29+
# Authentication challenges in E-Commerce
30+
31+
Building auth for an e-commerce platform isn't as simple as “email and password” anymore. Modern buyers expect:
32+
33+
- **Multiple sign-in options** (email, social login, magic links)
34+
- **Passwordless experiences**
35+
- **Two-factor authentication (2FA)**
36+
- **Session management across devices**
37+
- **Account recovery**
38+
- **Secure APIs** for mobile apps, web apps, and third-party integrations
39+
40+
And that's before you think about scaling to millions of users.
41+
42+
# How Appwrite simplifies E-Commerce authentication
43+
44+
Appwrite provides a secure,[fully-featured authentication system](/docs/products/auth) out of the box. Here’s what you get:
45+
46+
## 1. **Multiple sign-in methods**
47+
48+
Appwrite supports:
49+
50+
- Email/Password
51+
- Anonymous login (perfect for guest checkout)
52+
- OAuth providers (Google, Apple, GitHub, Discord, and more)
53+
- Magic URL sign-in (passwordless authentication)
54+
55+
You can mix and match depending on your store's needs.
56+
57+
## 2. **Built-in 2FA**
58+
59+
Enhance security by enabling two-factor authentication using TOTP apps like Google Authenticator. No extra backend work required. Learn more about [MFA](/docs/products/auth/mfa)
60+
61+
{% call_to_action title="Customer identity without the hassle" description="Add secure authentication for your users in just a couple of minutes." point1="Built-in security and compliance" point2="Multiple login methods" point3="Custom authentication flows" point4="Multi-factor authentication" cta="Request a demo" url="https://appwrite.io/contact-us/enterprise" /%}
62+
63+
## 3. **Self-Service account management**
64+
65+
Appwrite provides ready-to-use APIs for users to:
66+
67+
- Reset passwords
68+
- Update email addresses
69+
- Manage sessions across devices
70+
71+
Build beautiful UI components on top without reinventing the wheel.
72+
73+
## 4. **Secure, scalable sessions**
74+
75+
Every session is tightly managed and tokenized, making sure your users stay authenticated safely across devices, whether they shop on mobile or desktop.
76+
77+
## 5. **Customizable authentication workflows**
78+
79+
Want custom onboarding, email verification, or a loyalty signup flow? Appwrite’s Cloud Functions and webhooks let you extend and customize without touching your core app code.
80+
81+
## 6. **Privacy & compliance friendly**
82+
83+
With built-in features for GDPR compliance, encrypted storage, and fine-grained permissions, Appwrite makes it easier to protect customer data and respect user privacy.
84+
85+
# Real-world example: Fast checkout with magic URLs
86+
87+
Imagine reducing checkout friction by letting users sign in with a single email link. No passwords, no back-and-forth. Appwrite’s Magic URL flow lets you send users a secure link that signs them in instantly, helping boost conversion rates and customer happiness.
88+
89+
# Getting started: Your first Auth flow in minutes
90+
91+
With Appwrite’s SDKs (for Web, Flutter, iOS, Android, and more), integrating authentication is fast:
92+
93+
```jsx
94+
import { Client, Account } from 'appwrite';
95+
96+
const client = new Client()
97+
.setEndpoint('https://cloud.appwrite.io/v1')
98+
.setProject('your-project-id');
99+
100+
const account = new Account(client);
101+
102+
// Create a new account
103+
await account.create('unique-user-id', '[email protected]', 'password123');
104+
105+
// Login
106+
await account.createEmailPasswordSession('[email protected]', 'password123');
107+
108+
```
109+
110+
That's it. Secure, scalable auth in just a few lines.
111+
112+
# Build E-Commerce your way, with Appwrite
113+
114+
Authentication shouldn't slow down your e-commerce dreams. With Appwrite, you can focus on building amazing shopping experiences, not fighting backend complexity.
115+
116+
Whether you are starting a new store or growing a marketplace, Appwrite provides tools for secure and easy authentication. You can use them your way.
117+
118+
Ready to get started? [Deploy Appwrite](https://cloud.appwrite.io/) in minutes and launch your next big thing.
119+
120+
# Further reading
121+
122+
- [Appwrite Authentication docs](/docs/products/auth)
123+
- [Appwrite vs Auth0: Which is better for a B2C app?](/appwrite-vs-auth0-b2c)
124+
- [OAuth with Google](/integrations/oauth-google)
125+
- [OAuth with Amazon](/integrations/oauth-amazon)
126+
127+
477 KB
Loading

0 commit comments

Comments
 (0)