Sign in with Googlewithout Google Cloud setup
authxi adds Google sign-in to your apps and runs it for you. It applies your access rules and two-step verification, and sends each user back to the exact page they started from. Your apps connect with standard OpenID Connect.
Free for up to 10,000 users a month. 14-day Pro trial, no card needed.
- Step 1: Your app
A signed-out user opens a page
app.acme.com/billing/invoices?tab=due
Your app sends them to authxi with its client id. The page they wanted travels with the sign-in.
- Step 2: authxi
authxi checks the request
acme.authxi.com/authorize
Known app, exact redirect URL, PKCE. Users already signed in to the workspace skip Google.
- Step 3: Google
The user picks a Google account
accounts.google.com
Through authxi's Google client, so you never set one up. Then authxi applies your access rules and 2FA.
- Step 4: Back to your app
Signed in, on the same page
app.acme.com/billing/invoices?tab=due
Your app gets a verified ID token with the user's email, name and picture, and starts its own session.
How it works
Set up once for every app you run
Create a workspace
Your company's own sign-in address, like
acme.authxi.com, with its users, branding and access rules.Add your apps
Each app gets a client id. Register its callback URLs: authxi only returns to those, matched exactly.
Add a few lines of code
Use our SDKs, Laravel Socialite, Auth.js or any OpenID Connect library. Your app keeps its own session.
For developers
A few lines in the stack you already use
- Authorization code flow with PKCE, state and nonce
- RS256 ID tokens, verified against your workspace's keys
returnTokeeps the page the user asked for- Errors such as access denied come back to your app to show
import { createAuthxi } from '@authxi/js';
export const authxi = createAuthxi({
issuer: 'https://acme.authxi.com',
clientId: 'app_...',
redirectUri: `${location.origin}/auth/callback`,
});
// Sends the user to sign in. returnTo defaults to the current page.
await authxi.login();const { user, returnTo } = await authxi.handleRedirect();
location.replace(returnTo); // the page they started onimport { AuthxiProvider } from '@authxi/react';
<AuthxiProvider
issuer="https://acme.authxi.com"
clientId="app_..."
redirectUri={`${location.origin}/auth/callback`}
onRedirect={(returnTo) => router.navigate(returnTo, { replace: true })}
>
<App />
</AuthxiProvider>import { RequireAuth, useAuth } from '@authxi/react';
function Billing() {
const { user, logout } = useAuth();
return <p>Signed in as {user?.email} <button onClick={() => logout()}>Sign out</button></p>;
}
// Signs in first if needed, then comes back to this exact page.
<RequireAuth>
<Billing />
</RequireAuth>import express from 'express';
import { createAuthxiServer, expressAuthxi } from '@authxi/node';
const authxi = createAuthxiServer({
issuer: 'https://acme.authxi.com',
clientId: process.env.AUTHXI_CLIENT_ID,
clientSecret: process.env.AUTHXI_CLIENT_SECRET,
redirectUri: 'https://app.acme.com/auth/callback',
cookieSecret: process.env.AUTHXI_COOKIE_SECRET, // at least 32 characters
});
const app = express();
// Serves GET /login?returnTo=..., GET /auth/callback and GET /logout
app.use(
expressAuthxi(authxi, {
onSignIn(req, res, { user, returnTo }) {
req.session.user = { id: user.id, email: user.email };
res.redirect(returnTo);
},
onSignOut: (req) => req.session.destroy(),
}),
);'authxi' => [
'issuer' => 'https://acme.authxi.com',
'client_id' => env('AUTHXI_CLIENT_ID'),
'client_secret' => env('AUTHXI_CLIENT_SECRET'),
'redirect' => '/auth/callback',
],use App\Models\User;
use Illuminate\Support\Facades\Auth;
use Laravel\Socialite\Facades\Socialite;
Route::get('/login', fn () => Socialite::driver('authxi')->redirect());
Route::get('/auth/callback', function () {
$u = Socialite::driver('authxi')->user(); // ID token already verified
Auth::login(User::updateOrCreate(['authxi_id' => $u->getId()], [
'email' => $u->getEmail(),
'name' => $u->getName(),
]));
return redirect()->intended('/dashboard'); // back to the page they started on
});Auth.js, Laravel Socialite, openid-client, Authlib, Spring Security and others read everything from the discovery document.
issuer https://acme.authxi.com
discovery https://acme.authxi.com/.well-known/openid-configuration
client id app_...
client secret axs_... # server apps only
scopes openid email profile
flow authorization code with PKCE (S256)Access rules
Decide who gets in
access_denied error, so you can show your own message.Any Google account
Anyone with a Google account can sign in.
Company domains
Only people from domains you list, checked against the Google Workspace domain and the verified email.
Invite only
Only people you have invited by email.
Approval
New people wait until an admin approves them.
Verify
Two-step verification, at sign-in and before sensitive actions
- Authenticator apps
- Passkeys
- Email codes
- Backup codes
Enter the code from your authenticator app
Dashboard
See every sign-in, and run it with your team
Sign-in logs and analytics
Every sign-in with its result, app, country and device, and trends over time.
Webhooks
Signed events when people sign up, sign in, are approved or blocked, and when 2FA methods change.
Custom domains
Serve sign-in from your own domain, like login.acme.com.
Branding
Your name, logo and colours on the sign-in and verification pages.
Audit log
Who changed which setting, and when.
Teams with roles
Owners, admins, developers and viewers for your dashboard.
Security
Built to be the front door
- PKCE, state and nonce on every sign-in
- Redirect URLs matched exactly, no wildcards
- Codes that work once, for 60 seconds
- Secrets hashed, signing keys and 2FA secrets encrypted
- Rate limits on every sign-in endpoint
- 2FA required for dashboard admins
Pricing
One plan per company, 2FA included
Free
$0 /month
10,000 users a month
Pro
$29 /month
25,000 users a month
Business
$199 /month
100,000 users a month
Enterprise
Custom
Custom volume
Add Google sign-in to your app today
Free for up to 10,000 users a month. New companies get a 14-day Pro trial, no card needed.