No backend. No OAuth flow. No API keys.

SSO in
two HTML tags.

One script. One link. That's it.

index.html
<!-- Recommended (optional): the SDK adds a layer of security (incl. PKCE) -->
<script defer async src="https://cdn.loginwith.dev/sdk-latest"></script>

<!-- That's it. Seriously. -->
<a href="https://google.loginwith.link">Login with Google</a>

Handles PKCE, tokens, and sessions — out of the box.

How to retrieve the token

Pick your stack. Paste. Done.

JavaScript Vanilla JS
<script defer src="https://acme.loginwith.dev/cdn/sdk-latest"></script>
<script>
  addEventListener("lgw:ready", async () => {
    if (!(await lgw.isAuthenticated())) return lgw.signIn()

    // Renewed transparently — send it to your API as a Bearer token.
    const token = await lgw.getAccessToken()
    axios.defaults.headers.common.Authorization = `Bearer ${token}`

    const me = await lgw.User.me()
    console.log(`Welcome, ${me.firstName}`)
  })
</script>

Branded login pages, for free

Every app gets a hosted login page at {your-slug}.loginwith.page — with your name, title, and favicon. No frontend code required.

  • ✓ Every provider, rendered with the right brand buttons
  • ✓ Multi-tenant ready — single page can serve multiple clients
  • ✓ Handles PKCE, code exchange, and session cookies for you
acme.loginwith.page
A

Sign in to Acme

Continue with Google
Continue with GitHub
Continue with Microsoft
Continue with LinkedIn
Continue with GitLab
Continue with X
Continue with Meta
Continue with Apple

Supported Providers

Social, professional, and developer identities — all from a single endpoint.

Live

Google

google.loginwith.link
Live

GitHub

github.loginwith.link
Live

Microsoft

microsoft.loginwith.link
Live

LinkedIn

linkedin.loginwith.link
Live

GitLab

gitlab.loginwith.link
Live

X

x.loginwith.link
Soon

Meta

meta.loginwith.link
Soon

Apple

apple.loginwith.link

How It Works

Three simple steps. No configuration needed.

1

Add the Script

One script tag, and a link to your provider — google.loginwith.link.

2

User Authenticates

User clicks it and authenticates with their chosen provider. We handle all the OAuth complexity.

3

Receive User Data

User is redirected back to your site with their profile information. That's it!

Zero-config script

cdn.loginwith.dev/sdk-latest is the same script on every site — no API keys, no client IDs to paste, no backend code, no callback route. It adds a layer of security (incl. PKCE) to your link.

Full OAuth when you need it

Need access tokens, refresh tokens, or a session API? Install @loginwith/sdk for OAuth 2.0 + PKCE with JWTs and JWKS validation.

Frequently asked questions

Do I need a backend?

No for basic auth. You can authenticate users and retrieve tokens client-side with just HTML + the SDK. You only need a backend if your app has its own APIs or business logic.

What is a managed user?

Any person you store and manage with LoginWith — customer, employee, or member.

Do I pay for all users?

No. You only pay for managed users — the ones we actively handle. If you manage users yourself, LoginWith is free.

Users inactive for 90 days are not billed either. They can log back in anytime.

When do I need SAML or SCIM?

When your customers ask for:

  • SSO with their company account
  • automated user provisioning

You typically don't need it until you sell to enterprises — which is why it's a paid add-on priced per enterprise customer.

Can I migrate later?

Yes. Start with Free and upgrade anytime without breaking your setup. No contracts, no commitments.

Start simple. Add complexity only when you need it.

Ready to Simplify Your Authentication?

Pick a name. Sign in. It's yours.

.loginwith.page
Or open the console