Skip to main content
Authentication Learn more

Secure Authentication
Made Simple

Implement robust authentication in minutes with our type-safe, secure, and flexible authentication system. Built for modern applications with developer experience in mind.

Multiple Auth Strategies

Support various authentication methods including JWT, session-based, and OAuth providers like Google, GitHub, and more.

Built-in Security

Industry-standard security practices with password hashing, rate limiting, and CSRF protection out of the box.

Role-Based Access

Granular permission control with role-based access control (RBAC) and custom authorization policies.

API Authentication

Secure your API endpoints with API keys, bearer tokens, and customizable authentication middleware.

Simple to implement.
Powerful to extend.

Get started with just a few lines of code. Our authentication system is designed to be both easy to use and highly extensible.

Type-Safe Authentication

Get full TypeScript support for user sessions, tokens, and authentication flows.

Easy Integration

Drop-in authentication components and hooks for popular frontend frameworks.

Customizable Flows

Build custom authentication flows that match your application's needs.

import { auth } from '@squelify/auth'

// Setup authentication with your preferred strategy
auth.setup({
  providers: ['github', 'google'],
  session: {
    strategy: 'jwt',
    maxAge: '7d'
  }
})

// Protect your routes with built-in middleware
app.get('/protected', auth.middleware(), (req, res) => {
  const user = req.user // Fully typed user object
  res.json({ message: `Hello ${user.name}!` })
})

Ready to secure your application?

Get started with Squelify Authentication in minutes.