
Research
/Security News
737 Chrome VPN Extensions Linked to Brand Impersonation and Browser Traffic Redirection
The campaign amassed more than 75,000 installs by targeting Russian-speaking users seeking access to blocked services.
@authon/angular
Advanced tools
English | 한국어
Drop-in Angular authentication with service, guard, and social buttons — Auth0 alternative
Before installing the SDK, create an Authon project and get your API keys:
Create a project at Authon Dashboard
Get your API keys from Project Settings → API Keys
pk_live_...) — use in your frontend codepk_test_...) — for development, enables Dev TeleportConfigure OAuth providers (optional) in Project Settings → OAuth
https://api.authon.dev/v1/auth/oauth/redirectTest vs Live keys: Use
pk_test_...during development. Switch topk_live_...before deploying to production. Test keys use a sandbox environment with no rate limits.
npm install @authon/angular
// app.config.ts
import { ApplicationConfig } from '@angular/core';
import { provideRouter } from '@angular/router';
import { provideAuthon } from '@authon/angular';
import { routes } from './app.routes';
export const appConfig: ApplicationConfig = {
providers: [
provideRouter(routes),
...provideAuthon({
publishableKey: 'pk_live_YOUR_PUBLISHABLE_KEY',
}),
],
};
// app.component.ts
import { Component, Inject, ChangeDetectorRef, OnInit, OnDestroy } from '@angular/core';
import { AuthonService } from '@authon/angular';
@Component({
selector: 'app-root',
standalone: true,
template: `
<div *ngIf="!authon.isLoading">
<div *ngIf="authon.isSignedIn">
<p>Welcome, {{ authon.user?.displayName }}</p>
<button (click)="authon.signOut()">Sign out</button>
</div>
<button *ngIf="!authon.isSignedIn" (click)="authon.openSignIn()">Sign in</button>
</div>
`,
})
export class AppComponent implements OnInit, OnDestroy {
private unsub?: () => void;
constructor(
@Inject('AuthonService') public authon: AuthonService,
private cdr: ChangeDetectorRef,
) {}
ngOnInit() { this.unsub = this.authon.onStateChange(() => this.cdr.markForCheck()); }
ngOnDestroy() { this.unsub?.(); }
}
async signInWithGoogle() {
await this.authon.getClient().signInWithOAuth('google');
}
// app.routes.ts
import { inject } from '@angular/core';
import { authGuard, AuthonService } from '@authon/angular';
export const routes = [
{
path: 'dashboard',
loadComponent: () => import('./dashboard.component').then(m => m.DashboardComponent),
canActivate: [() => {
const authon = inject('AuthonService') as AuthonService;
return authGuard(authon, '/sign-in');
}],
},
];
const user = this.authon.user;
// { id, email, displayName, avatarUrl, emailVerified, ... }
const token = this.authon.getToken();
async handleSignIn(email: string, password: string) {
await this.authon.getClient().signInWithEmail(email, password);
}
await this.authon.signOut();
| Variable | Required | Description |
|---|---|---|
AUTHON_PUBLISHABLE_KEY | Yes | Project publishable key (pk_live_... or pk_test_...) |
AUTHON_API_URL | No | Optional — defaults to api.authon.dev |
| Property / Method | Type |
|---|---|
user | AuthonUser | null |
isSignedIn | boolean |
isLoading | boolean |
openSignIn() | Promise<void> |
openSignUp() | Promise<void> |
signOut() | Promise<void> |
getToken() | string | null |
getClient() | Authon (full @authon/js client) |
onStateChange(cb) | () => void (unsubscribe) |
web3GetNonce(...) | Web3 nonce |
web3Verify(...) | Web3 sign-in |
passwordlessSendCode(...) | Magic link / OTP |
passkeyRegister(...) | Register passkey |
passkeyAuthenticate(...) | Auth with passkey |
| Function | Description |
|---|---|
provideAuthon(config) | Angular provider factory for standalone apps |
authGuard(service, redirectTo?) | Route guard factory |
renderSocialButtons(options) | Render OAuth buttons into a DOM element |
| Feature | Authon | Clerk | Auth.js |
|---|---|---|---|
| Pricing | Free | $25/mo+ | Free |
| OAuth providers | 10+ | 20+ | 80+ |
| Angular support | Native | Community | No |
| MFA/Passkeys | Yes | Yes | Plugin |
| Web3 auth | Yes | No | No |
MIT
FAQs
Authon Angular SDK — service, guard, and components
We found that @authon/angular demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
The campaign amassed more than 75,000 installs by targeting Russian-speaking users seeking access to blocked services.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.