Git Product home page Git Product logo

monaco's Introduction

Monaco

A simple, lightweight alternative to Auth.js. This only supports OAuth and is intentionally made to be basic and opinionated. We recommend using Lucia for something more flexible.

For a full list of OAuth providers, see @monaco-auth/core.

Features and limitations

  • Easy setup
  • Sessions
  • No custom user attributes
  • No account linking
  • Only supports OAuth
  • Built-in providers

Frameworks

SvelteKit

See @monaco-auth/sveltekit for using Monaco with SvelteKit.

import { PrismaAdapter } from "@monaco-auth/adapter-prisma";
import { monaco } from "@monaco-auth/sveltekit";
import { GitHubProvider } from "@monaco-auth/core/providers";
import { PrismaClient } from "@prisma/client";
import { dev } from "$app/environment";
import { GITHUB_CLIENT_ID, GITHUB_CLIENT_SECRET } from "$env/static/private";

import type { Handle } from "@sveltejs/kit";

const client = new PrismaClient();

export const handle: Handle = monaco(new PrismaAdapter(client), {
	dev,
	providers: [new GitHubProvider(GITHUB_CLIENT_ID, GITHUB_CLIENT_SECRET)]
});

Adapters

monaco's People

Contributors

pilcrowonpaper avatar sangresz avatar

Stargazers

Robert Klubenspies avatar adithya avatar Willington Ortiz avatar David Sklář avatar  avatar pdina avatar Lewin Kelly avatar Caoimhe avatar Richard avatar Piotr Kapera avatar Brenton Cleeland avatar 爱可可-爱生活 avatar Ben avatar omar avatar Frédéric Larochelle avatar Henrique de Castro Machado avatar  avatar Thomas Bassetto avatar Juho Vepsäläinen avatar Zlatko Fedor avatar Pius avatar Pavel Trofimov avatar  avatar Mattèo Gauthier avatar Morse avatar Lucas Alves Rego avatar

Watchers

 avatar  avatar

Forkers

mz0in sangresz

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.