← All projects
SaaS platform · USA

Aurora Identity

One account, roles and billing across products

One login and one bill across every product, with access that follows the customer's plan.

Role
Lead Full Stack Developer
Built at
Aurora Nexus
Platform
Web
Type
Shared service
Stack
Next.js, Node.js, GraphQL, Stripe +1
Live
Visit site ↗
Product appsPlanner and othersGoogle / MicrosoftOAuth sign-inAuth serviceNode · GraphQL · RBACMongoDBUsers · tenants · logsStripeSubscriptions

Someone opens one of the products and is sent to sign in.

Problem

Each product had its own login and its own invoices. Customers juggled accounts, and admins had no single place to decide who could do what.

Approach

A central identity service. People sign in once with Google or Microsoft, roles are defined once and checked by every product, and subscriptions run through Stripe webhooks instead of manual invoicing.

Key decisions

  1. One GraphQL API

    Instead of: Separate REST endpoints per service

    Apps need the profile, permissions and plan together when they load. One query returns all three in a single round trip.

  2. Billing drives access

    Instead of: Keeping plans and roles in sync by hand

    Stripe webhooks update a customer's plan, and their access changes with it in every product. Nobody has to remember to revoke access after a cancellation.

  3. Tenant details inside the sign-in token

    Instead of: Looking up the organisation on every request

    Each product can tell who the user is and which organisation they belong to without calling back to the identity service.

Full stack

Next.jsNode.jsGraphQLStripeMongoDB