1.0.7 โ€ข Published 5 months ago

@advancetec/auth-backend v1.0.7

Weekly downloads
-
License
ISC
Repository
github
Last release
5 months ago

@advancetec/auth-backend

Centralized authentication tools for AdvanceTEC Node apps using Auth0

This package provides backend authentication utilities designed for internal applications. It includes a backend Express middleware for verifying requests.


๐Ÿ“ฆ Installation

npm install @advancetec/auth-backend

๐Ÿง  Features

  • ๐Ÿ”’ authentication: Express middleware to validate JWTs in protected routes

๐Ÿš€ Usage

Express Auth Middleware

Use the authentication middleware to protect your API routes:

import express from 'express'
import { authentication } from '@advancetec/auth-backend'

const app = express()

app.use(authentication)
app.use('/private', routes)

๐Ÿ”Œ Environment Variables

The following variables are expected to be available in the consuming app:

AUTH0_AUDIENCE=your-api-audience
AUTH0_ISSUER_BASE_URL=https://your-tenant.auth0.com/

๐Ÿ“ค Exports

NameTypeDescription
authenticationMiddlewareExpress middleware for backend route protection

๐Ÿ—๏ธ File Structure (Simplified)

src/
โ”œโ”€โ”€ backend/
โ”‚   โ””โ”€โ”€ middleware.ts

๐Ÿ› ๏ธ Roadmap

Add test suite + CI integration

๐Ÿงพ License

Internal use only. Not licensed for external distribution.

1.0.7

5 months ago

1.0.6

5 months ago

1.0.5

5 months ago

1.0.4

5 months ago

1.0.3

5 months ago

1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago