GithubHelp home page GithubHelp logo

therosbif / lucia Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lucia-auth/lucia

0.0 0.0 0.0 2.24 MB

Authentication, simple and clean

Home Page: https://lucia-auth.vercel.app

License: MIT License

Shell 0.08% JavaScript 1.77% TypeScript 91.00% CSS 0.61% HTML 0.17% Svelte 1.95% Astro 4.42%

lucia's Introduction

Lucia

This library is still in beta! While APIs have been relatively stable recently in preparation for v1.0, expect breaking changes.

Lucia is a simple yet flexible user and session management library that provides an abstraction layer between your app and your database. It's bare-bones by design, keeping everything easy to use and understand. Get started by reading the introduction page.

Code sample

Working with Lucia looks something like this. In the code below, you're creating a new user with a email/password method, creating a new session, and creating a cookie that you can set it to the user.

const user = await auth.createUser("email", email, {
	password
});
const session = await auth.createSession(user.userId);
const sessionCookie = auth.createSessionCookie(session);

Resources

Documentation

Join the Discord server!

Changelog

CONTRIBUTING.md

Installation

npm i lucia-auth
pnpm add lucia-auth
yarn add lucia-auth

Attributions

This project would not have been possible without our contributors, thank you!

Logo by @dawidmachon, licensed under CC BY-NC-SA 4.0.

lucia's People

Contributors

adriangonz97 avatar alex-way avatar biscuitech avatar blastose avatar captaindirgo avatar crisfole avatar danawoodman avatar dawidmachon avatar fabianmerino avatar faeyumbrea avatar ffss92 avatar gustavocadev avatar jasperkelder avatar jordancalhoun avatar jouandeag avatar leovoon avatar moka-ayumu avatar oscartbeaumont avatar oskar-gmerek avatar parables avatar pilcrowonpaper avatar rogadev avatar skepticmystic avatar skoontastic avatar taslater avatar tazorde avatar v-rogg avatar voiceofsoftware avatar weepy avatar zach-hopkins avatar

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.