TypeScript Auth

Open-source TypeScript projects categorized as Auth

Top 23 TypeScript Auth Projects

  • next-auth

    Authentication for the Web.

  • Project mention: Deploy Full-Stack Next.js T3App with Cognito and Prisma using AWS Lambda | dev.to | 2024-04-15

    NextAuth.js is not perfect. One of the shortcomings is that it currently does not implement federated logout. This means that even if a user signs out of the Next.js app, he does NOT get signed out of the Cognito user pool client. As a consequence, the user is not really being logged out (i.e he is able to login again without providing the credentials). You can read more about this problem in this Github thread.

  • lucia

    Authentication, simple and clean

  • Project mention: Best Next.js Libraries and Tools in 2024 | dev.to | 2024-04-10

    Link: https://lucia-auth.com/

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • logto

    🧑‍🚀 The better identity infrastructure for developers and the open-source alternative to Auth0.

  • Project mention: Logto v1.12.0 - Organizations, SSO, and MFA | /r/selfhosted | 2023-12-06
  • node-casbin

    An authorization library that supports access control models like ACL, RBAC, ABAC in Node.js and Browser

  • nestjs-boilerplate

    NestJS boilerplate. Auth, TypeORM, Mongoose, Postgres, MongoDB, Mailing, I18N, Docker.

  • Project mention: Extensive React Boilerplate to kickstart a new frontend project | dev.to | 2024-02-14

    How much time do we typically spend on project setup? We're talking about configuring installed libraries and writing boilerplate code to structure and implement best practices for achieving optimal website performance. At Brocoders, we often start new projects from scratch. That's why over 3 years ago, we created a NestJS boilerplate for the backend so that we wouldn't have to spend time developing core functionality that the end user doesn't see but is crucial for developers. Over this time, the boilerplate has received 1.9k stars on GitHub and has gained significant popularity beyond our company. Now, we've decided to take it a step further and created the Extensive React Boilerplate for the frontend. Its purpose is to keep our best practices in project development together, avoiding familiar pitfalls and reducing development time.

  • auth-module

    Zero-boilerplate authentication support for Nuxt 2

  • Project mention: nuxt 3 stack for fullstack | /r/Nuxt | 2023-05-16
  • foal

    Full-featured Node.js framework, with no complexity. 🚀 Simple and easy to use, TypeScript-based and well-documented.

  • Project mention: FoalTS – A Full-Featured Node.js Framework | news.ycombinator.com | 2023-05-18
  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • remix-auth

    Simple Authentication for Remix

  • Project mention: Remix loader api fetching with jwt | /r/react | 2023-12-06
  • zenstack

    Typescript toolkit on top of Prisma ORM, offering flexible and declarative Access Control Policy(Authorization/Permission) for RBAC/ABAC/PBAC/ReBAC with auto-generated type-safe APIs and frontend hooks.

  • Project mention: The Many Ways Not to Build an API | dev.to | 2024-04-01

    Another strategy is to model access control declaratively and enforce it in the application layer. ZenStack (built above Prisma ORM) and Hasura are good examples of this approach. The following code shows how access policies are defined with ZenStack and how a secured CRUD API can be derived automatically.

  • angular-auth-oidc-client

    npm package for OpenID Connect, OAuth Code Flow with PKCE, Refresh tokens, Implicit Flow

  • auth-helpers

    A collection of framework specific Auth utilities for working with Supabase.

  • Project mention: Supabase Authentication Issue with Next.js 13.4 - !session vs !user | /r/Supabase | 2023-07-04

    I have encountered a similar issue, but I haven't fully found a solution yet. Currently, I'm using the getSession function throughout my server components. Yesterday, I tried running a middleware to refresh the user's session, based on this example: https://github.com/supabase/auth-helpers/blob/main/examples/nextjs/middleware.tsx. This caught my attention because the comment mentioned that the middleware is necessary for any Server Component route using createServerComponentClient. Right now, I'm testing this approach, and so far, I haven't been logged out since yesterday. Do you have that in your application? The main difference between getSession and getUser in supabase is that getSession reads the cookies and is very fast (around 1-2 ms), while getUser makes a call to the supabase API with the access token to retrieve the user and I would assume they also verify the JWT on their end.

  • sk-auth

    Authentication library for use with SvelteKit featuring built-in OAuth providers and zero restriction customization!

  • react-auth-kit

    Powerful Auth Management library for ReactJs-based applications

  • auth-ui

    Pre-built Auth UI for React

  • Project mention: Supabase – General Availability Week | news.ycombinator.com | 2024-04-15

    Supabase is great - I use them now and they and would be my choice for a new project today - but I have to say I am not a huge fan of how they communicated the whole auth-helpers and ssr situation, and I am not the only one with this comment by a long shot. This is, I think, a part of wider issues with their documentation; it seems like whoever's doing documentation at Supabase is intelligent but stretched thin. Particularly for Sveltekit, the documentation and examples are incomplete, there isn't any guide to migration or how to modify your code, and if you Google things or follow any links or examples you quickly end up in a web of deprecated repositories where it's unclear what to do next or replace them with. One example: https://github.com/supabase-community/auth-ui

    If you produce a product for developers, you really need to have 1) quality, readable documentation with an introduction that noobs and pros alike can follow, 2) multiple complete, cloneable examples on how to integrate and use your product in several different libraries, 3) obvious migration guides and timelines whenever you deprecate something. Supabase lacks all three, which is extremely frustrating and means there's always a giant caveat when I recommend them. They're still the best, it's a very powerful and impressive product, and the possibility of self-hosting is amazing.

  • stack

    Open-source user authentication & management (by stackframe-projects)

  • Project mention: Show HN: Stack, the open-source Clerk/Firebase Auth alternative | news.ycombinator.com | 2024-04-14

    It is very close to the default theme, here you can find the custom CSS

    https://github.com/stackframe-projects/stack/blob/main/docs/...

  • react-query-auth

    ⚛️ Authenticate your react applications easily with react-query.

  • graphql-directive-auth

    GraphQL directive for handling auth

  • clerk-nextjs-demo-app-router

    Auth starts here with the official Next.js starter utilizing the app directory

  • Project mention: Clerk Webhooks: Getting Started | dev.to | 2023-11-28

    git clone https://github.com/clerkinc/clerk-next-app.git`

  • rollupid

    Open Source and OIDC compliant digital identity for the private web

  • clerk-nextjs-app-quickstart

    The official companion repo for Clerk's Next.js Quickstart using the app router

  • Project mention: Build a simple code snippet manager with Neon’s serverless driver, Clerk, and Nextjs | dev.to | 2024-02-12

    git clone https://github.com/clerk/clerk-nextjs-app-quickstart

  • blueauth

    🔐 Serverless passwordless authentication. No databases needed. Use in just 1 line in serverless, middleware, express, next.js, and more.

  • authey

    Universal support for Auth.js.

  • Project mention: Nuxt 3 vs NextJS 13 | /r/Nuxt | 2023-06-20

    In any case you want to roll your own auth easily, you can use https://github.com/wobsoriano/authey. Nuxt usage is there, you will have to make your own composables, though.

  • create-xp-app

    💻📲 Opionionated fullstack cross-platform app starter for Nextjs and Expo with up to 100% code sharing

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

TypeScript Auth related posts

Index

What are some of the best open-source Auth projects in TypeScript? This list will help you:

Project Stars
1 next-auth 22,158
2 lucia 7,509
3 logto 7,211
4 node-casbin 2,480
5 nestjs-boilerplate 2,343
6 auth-module 1,906
7 foal 1,855
8 remix-auth 1,775
9 zenstack 1,620
10 angular-auth-oidc-client 1,097
11 auth-helpers 880
12 sk-auth 575
13 react-auth-kit 496
14 auth-ui 445
15 stack 341
16 react-query-auth 301
17 graphql-directive-auth 138
18 clerk-nextjs-demo-app-router 137
19 rollupid 132
20 clerk-nextjs-app-quickstart 78
21 blueauth 59
22 authey 46
23 create-xp-app 43

Sponsored
The modern identity platform for B2B SaaS
The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
workos.com