One script. One link. That's it.
<!-- 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.
Pick your stack. Paste. Done.
<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>Every app gets a hosted login page at {your-slug}.loginwith.page — with your name, title, and favicon. No frontend code required.
Social, professional, and developer identities — all from a single endpoint.
Three simple steps. No configuration needed.
One script tag, and a link to your provider — google.loginwith.link.
User clicks it and authenticates with their chosen provider. We handle all the OAuth complexity.
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.
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.
Any person you store and manage with LoginWith — customer, employee, or member.
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 your customers ask for:
You typically don't need it until you sell to enterprises — which is why it's a paid add-on priced per enterprise customer.
Yes. Start with Free and upgrade anytime without breaking your setup. No contracts, no commitments.
Start simple. Add complexity only when you need it.